6884 | 2023-12-19 13:58:55 | csakesz | Bevásárlás | cpp17 | Wrong answer 60/100 | 3ms | 4540 KiB |
#include <iostream>
using namespace std;
int main()
{
int a,b,c,ossz=0,k=-1;
cin>>a>>b>>c;
if(a+b+c>8)
{
for(int i=0;i<10;i++)
{
if(a>0)
{
ossz=ossz+300;
a--;
}
else if(b>0)
{
ossz=ossz+350;
b--;
}
else if(c>0)
{
ossz+=400;
c--;
}
}
cout<<ossz<<endl;
}
else
{
cout<<k<<endl;
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1872 KiB | ||||
2 | Accepted | 3ms | 2128 KiB | ||||
3 | Accepted | 3ms | 2340 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 3ms | 2424 KiB | ||||
5 | Accepted | 3ms | 2692 KiB | ||||
6 | Accepted | 3ms | 2796 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 3ms | 2792 KiB | ||||
8 | Accepted | 3ms | 2968 KiB | ||||
9 | Accepted | 3ms | 3144 KiB | ||||
10 | Accepted | 3ms | 3392 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 3ms | 3280 KiB | ||||
12 | Accepted | 3ms | 3620 KiB | ||||
13 | Accepted | 3ms | 3680 KiB | ||||
14 | Accepted | 3ms | 3768 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Accepted | 3ms | 3776 KiB | ||||
16 | Accepted | 3ms | 3840 KiB | ||||
17 | Wrong answer | 3ms | 3972 KiB | ||||
18 | Accepted | 3ms | 4112 KiB | ||||
19 | Accepted | 3ms | 4356 KiB | ||||
20 | Accepted | 3ms | 4540 KiB |