1695 | 2022-12-01 15:56:52 | Tina0731 | Bevásárlás | cpp11 | Wrong answer 70/100 | 3ms | 3444 KiB |
#include <iostream>
using namespace std;
int main()
{
int a, b, c;
cin>>a>>b>>c;
int osszeg=0, kell=10;
if(a+b+c<10)
cout<<-1;
else
{
if(a>=10)
cout<<3000;
else
{
osszeg+=a*300;
kell-=a;
if(b>=kell)
osszeg+=kell*350;
else
{
osszeg+=b*350;
kell-=b;
osszeg+=kell*400;
}
}
cout<<osszeg;
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 2ms | 2116 KiB | ||||
3 | Accepted | 2ms | 2348 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 2ms | 2432 KiB | ||||
5 | Wrong answer | 2ms | 2792 KiB | ||||
6 | Wrong answer | 2ms | 2784 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Wrong answer | 2ms | 2848 KiB | ||||
8 | Accepted | 2ms | 3100 KiB | ||||
9 | Accepted | 2ms | 3056 KiB | ||||
10 | Accepted | 2ms | 2940 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 2ms | 3004 KiB | ||||
12 | Accepted | 2ms | 3120 KiB | ||||
13 | Accepted | 2ms | 3120 KiB | ||||
14 | Accepted | 2ms | 3124 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 2ms | 3376 KiB | ||||
16 | Accepted | 2ms | 3328 KiB | ||||
17 | Accepted | 2ms | 3444 KiB | ||||
18 | Accepted | 2ms | 3440 KiB | ||||
19 | Accepted | 2ms | 3444 KiB | ||||
20 | Accepted | 2ms | 3332 KiB |