112552024-08-01 12:20:57matekimado11Bevásárláscpp17Accepted 100/1004ms760 KiB
#include<iostream>
using namespace std;
int main()
{
    int a,b,c,s=10,f=0;
    cin>>a>>b>>c;
    if(a>9){cout<<3000;}
    else{s-=a;f+=a*300;
    if(b>=s){cout<<f+s*350;}
    else{s-=b;f+=b*350;
    if(c>=s){cout<<f+s*400;}
    else{cout<<"-1";}}}

    cout<<endl;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms356 KiB
2Accepted3ms516 KiB
3Accepted3ms356 KiB
subtask210/10
4Accepted3ms472 KiB
5Accepted3ms500 KiB
6Accepted3ms256 KiB
subtask320/20
7Accepted3ms416 KiB
8Accepted3ms744 KiB
9Accepted3ms384 KiB
10Accepted3ms504 KiB
subtask430/30
11Accepted3ms256 KiB
12Accepted2ms256 KiB
13Accepted3ms384 KiB
14Accepted3ms528 KiB
subtask540/40
15Accepted3ms416 KiB
16Accepted3ms760 KiB
17Accepted3ms484 KiB
18Accepted3ms356 KiB
19Accepted2ms488 KiB
20Accepted4ms360 KiB