67972023-12-19 10:15:56L3ONBevásárláscpp17Wrong answer 0/1003ms3856 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;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1744 KiB
2Wrong answer3ms1996 KiB
3Wrong answer3ms2208 KiB
subtask20/10
4Wrong answer3ms2420 KiB
5Wrong answer3ms2632 KiB
6Wrong answer3ms2664 KiB
subtask30/20
7Wrong answer3ms2808 KiB
8Wrong answer3ms2792 KiB
9Accepted3ms2796 KiB
10Wrong answer3ms3064 KiB
subtask40/30
11Accepted3ms3140 KiB
12Wrong answer3ms3216 KiB
13Wrong answer3ms3284 KiB
14Wrong answer3ms3408 KiB
subtask50/40
15Accepted3ms3432 KiB
16Wrong answer3ms3564 KiB
17Wrong answer3ms3684 KiB
18Accepted3ms3644 KiB
19Wrong answer3ms3780 KiB
20Wrong answer3ms3856 KiB