6797 | 2023-12-19 10:15:56 | L3ON | Bevásárlás | cpp17 | Wrong answer 0/100 | 3ms | 3856 KiB |
#include <iostream>
using namespace std;
int main()
{
int a, b, c, osszeg=0, db=0;
cin>>a>>b>>c;
do
{
osszeg=0;
for(int i=1;i<=a;i++)
{
osszeg+=300;
db++;
}
for(int i=1;i<=b;i++)
{
osszeg+=350;
db++;
}
for(int i=1;i<=c;i++)
{
osszeg+=400;
db++;
}
}while(db==10);
cout<<osszeg;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1744 KiB | ||||
2 | Wrong answer | 3ms | 1996 KiB | ||||
3 | Wrong answer | 3ms | 2208 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 3ms | 2420 KiB | ||||
5 | Wrong answer | 3ms | 2632 KiB | ||||
6 | Wrong answer | 3ms | 2664 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Wrong answer | 3ms | 2808 KiB | ||||
8 | Wrong answer | 3ms | 2792 KiB | ||||
9 | Accepted | 3ms | 2796 KiB | ||||
10 | Wrong answer | 3ms | 3064 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Accepted | 3ms | 3140 KiB | ||||
12 | Wrong answer | 3ms | 3216 KiB | ||||
13 | Wrong answer | 3ms | 3284 KiB | ||||
14 | Wrong answer | 3ms | 3408 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Accepted | 3ms | 3432 KiB | ||||
16 | Wrong answer | 3ms | 3564 KiB | ||||
17 | Wrong answer | 3ms | 3684 KiB | ||||
18 | Accepted | 3ms | 3644 KiB | ||||
19 | Wrong answer | 3ms | 3780 KiB | ||||
20 | Wrong answer | 3ms | 3856 KiB |