68822023-12-19 13:54:23barmi3Bevásárláscpp17Wrong answer 0/1003ms3272 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;

}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1744 KiB
2Wrong answer3ms1908 KiB
3Wrong answer3ms2128 KiB
subtask20/10
4Wrong answer3ms2332 KiB
5Wrong answer3ms2420 KiB
6Wrong answer2ms2416 KiB
subtask30/20
7Wrong answer2ms2424 KiB
8Wrong answer2ms2540 KiB
9Wrong answer3ms2424 KiB
10Wrong answer3ms2428 KiB
subtask40/30
11Wrong answer3ms2560 KiB
12Wrong answer3ms2668 KiB
13Wrong answer3ms2796 KiB
14Wrong answer3ms2848 KiB
subtask50/40
15Wrong answer3ms2968 KiB
16Wrong answer3ms3160 KiB
17Wrong answer3ms3272 KiB
18Wrong answer3ms3248 KiB
19Wrong answer3ms3252 KiB
20Wrong answer3ms3248 KiB