6856 | 2023-12-19 12:31:35 | kboti | Bevásárlás | cpp17 | Wrong answer 40/100 | 3ms | 4060 KiB |
#include <iostream>
using namespace std;
int main() {
int a,b,c,n=10,k=0;
cin>>a>>b>>c;
if (a<n)
{
n=n-a;
k=k+a*300;
}
else
{
k=k+n*300;
n=0;
}
if (b<n)
{
n=n-b;
k=k+b*350;
}
else
{
k=k+n*350;
n=0;
}
if (c<n)
{
n=n-c;
k=k+c*400;
}
else
{
k=k+n*400;
n=0;
}
cout<<k<<endl;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1872 KiB | ||||
2 | Wrong answer | 3ms | 2120 KiB | ||||
3 | Accepted | 3ms | 2220 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 3ms | 2416 KiB | ||||
5 | Accepted | 3ms | 2620 KiB | ||||
6 | Accepted | 3ms | 2800 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Accepted | 3ms | 3016 KiB | ||||
8 | Accepted | 3ms | 3268 KiB | ||||
9 | Accepted | 3ms | 3480 KiB | ||||
10 | Wrong answer | 3ms | 3560 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 3ms | 3692 KiB | ||||
12 | Accepted | 3ms | 3772 KiB | ||||
13 | Accepted | 3ms | 3904 KiB | ||||
14 | Accepted | 3ms | 3984 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Accepted | 3ms | 3984 KiB | ||||
16 | Wrong answer | 3ms | 3944 KiB | ||||
17 | Wrong answer | 3ms | 3952 KiB | ||||
18 | Accepted | 3ms | 4060 KiB | ||||
19 | Accepted | 3ms | 4060 KiB | ||||
20 | Accepted | 3ms | 4060 KiB |