62652023-11-10 20:14:31horkaBevásárláscpp17Wrong answer 30/1003ms4772 KiB
#include <bits/stdc++.h>
using namespace std;

int main()
{
    int a,b,c; cin>>a>>b>>c;
    int sum=0,vett=0;
    sum+=min(300*10,300*a);
    vett+=min(10,a);
    if(vett<10) sum+=min((10-vett)*350,b*350);
    if(vett<10) sum+=min((10-vett)*400,c*400);
    cout<<(a+b+c>=10?sum:-1)<<endl;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms2024 KiB
2Accepted3ms2176 KiB
3Wrong answer2ms2380 KiB
subtask210/10
4Accepted2ms2468 KiB
5Accepted3ms2752 KiB
6Accepted2ms2672 KiB
subtask320/20
7Accepted3ms2808 KiB
8Accepted3ms2924 KiB
9Accepted3ms3140 KiB
10Accepted3ms3352 KiB
subtask40/30
11Accepted3ms3484 KiB
12Wrong answer3ms3732 KiB
13Accepted3ms3840 KiB
14Wrong answer3ms3836 KiB
subtask50/40
15Accepted3ms4000 KiB
16Accepted3ms4208 KiB
17Accepted3ms4272 KiB
18Accepted3ms4384 KiB
19Wrong answer3ms4492 KiB
20Wrong answer3ms4772 KiB