6882 | 2023-12-19 13:54:23 | barmi3 | Bevásárlás | cpp17 | Wrong answer 0/100 | 3ms | 3272 KiB |
#include <iostream>
using namespace std;
int main()
{
int a=300,b=350,c=400,A,B,C,ossz=0;
cin>>A>>B>>C;
if((A+B+C)<10)
cout<<"-1"<<endl;
for(int i=0;i<10;i++)
{
if(A!=0)
{
ossz=ossz+a;
A--;
}
else if(B!=0)
{
ossz=ossz+b;
B--;
}
else
{
ossz=ossz+c;
C--;
}
}
cout<<endl;
cout<<ossz<<endl;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1744 KiB | ||||
2 | Wrong answer | 3ms | 1908 KiB | ||||
3 | Wrong answer | 3ms | 2128 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 3ms | 2332 KiB | ||||
5 | Wrong answer | 3ms | 2420 KiB | ||||
6 | Wrong answer | 2ms | 2416 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Wrong answer | 2ms | 2424 KiB | ||||
8 | Wrong answer | 2ms | 2540 KiB | ||||
9 | Wrong answer | 3ms | 2424 KiB | ||||
10 | Wrong answer | 3ms | 2428 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Wrong answer | 3ms | 2560 KiB | ||||
12 | Wrong answer | 3ms | 2668 KiB | ||||
13 | Wrong answer | 3ms | 2796 KiB | ||||
14 | Wrong answer | 3ms | 2848 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Wrong answer | 3ms | 2968 KiB | ||||
16 | Wrong answer | 3ms | 3160 KiB | ||||
17 | Wrong answer | 3ms | 3272 KiB | ||||
18 | Wrong answer | 3ms | 3248 KiB | ||||
19 | Wrong answer | 3ms | 3252 KiB | ||||
20 | Wrong answer | 3ms | 3248 KiB |