6265 | 2023-11-10 20:14:31 | horka | Bevásárlás | cpp17 | Wrong answer 30/100 | 3ms | 4772 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 2024 KiB | ||||
2 | Accepted | 3ms | 2176 KiB | ||||
3 | Wrong answer | 2ms | 2380 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 2ms | 2468 KiB | ||||
5 | Accepted | 3ms | 2752 KiB | ||||
6 | Accepted | 2ms | 2672 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 3ms | 2808 KiB | ||||
8 | Accepted | 3ms | 2924 KiB | ||||
9 | Accepted | 3ms | 3140 KiB | ||||
10 | Accepted | 3ms | 3352 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Accepted | 3ms | 3484 KiB | ||||
12 | Wrong answer | 3ms | 3732 KiB | ||||
13 | Accepted | 3ms | 3840 KiB | ||||
14 | Wrong answer | 3ms | 3836 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Accepted | 3ms | 4000 KiB | ||||
16 | Accepted | 3ms | 4208 KiB | ||||
17 | Accepted | 3ms | 4272 KiB | ||||
18 | Accepted | 3ms | 4384 KiB | ||||
19 | Wrong answer | 3ms | 4492 KiB | ||||
20 | Wrong answer | 3ms | 4772 KiB |