1694 | 2022-12-01 15:53:02 | Tina0731 | Bevásárlás | cpp11 | Wrong answer 70/100 | 3ms | 4164 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 | 1872 KiB | ||||
2 | Accepted | 2ms | 2064 KiB | ||||
3 | Accepted | 2ms | 2420 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 2ms | 2488 KiB | ||||
5 | Wrong answer | 2ms | 2572 KiB | ||||
6 | Wrong answer | 2ms | 2772 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Wrong answer | 2ms | 2908 KiB | ||||
8 | Accepted | 2ms | 3108 KiB | ||||
9 | Accepted | 2ms | 3180 KiB | ||||
10 | Accepted | 2ms | 3436 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 2ms | 3632 KiB | ||||
12 | Accepted | 2ms | 3844 KiB | ||||
13 | Accepted | 2ms | 3956 KiB | ||||
14 | Accepted | 2ms | 4064 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 2ms | 4108 KiB | ||||
16 | Accepted | 2ms | 4140 KiB | ||||
17 | Accepted | 2ms | 4048 KiB | ||||
18 | Accepted | 2ms | 4092 KiB | ||||
19 | Accepted | 2ms | 4160 KiB | ||||
20 | Accepted | 2ms | 4164 KiB |