68162023-12-19 10:36:07szebi1100Bolha a számegyenesencpp17Wrong answer 0/1003ms3412 KiB
#include <iostream>

using namespace std;

int main()
{
    int A,B,C,ar,a,b,c,ad=1,bd=1,cd=1,l1,l2,l3;
    cout << "Hany db gyumolcsle kell? (max 10)" << endl;
    cin >> A>>B>>C;
    a = 300;
    b = 350;
    c = 400;
    if (A+B+C < 10)
        cout << "-1";

        if (A == 10)
        {
            ar = A*a;
            ad+=10;
        }
        else if (B==10)
        {
            ar = B*b;
            bd+=10;
        }
        else if (C==10)
        {
            ar = C*c;
            cd+=10;
        }
        else
        {

            ad += A*ad;
            bd += B*bd;
            cd += C*cd;
            do
            {
            l1=ad-1;
            l2=bd-1;
            l3=cd-1;
            }while (ad+bd+cd==10);




            ar = ad * a + bd * b + cd * c;

        }


 cout << ar;


    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1872 KiB
2Wrong answer3ms2120 KiB
subtask20/15
3Wrong answer3ms2372 KiB
4Wrong answer3ms2416 KiB
5Wrong answer3ms2608 KiB
6Wrong answer3ms2696 KiB
subtask30/10
7Wrong answer3ms2580 KiB
8Wrong answer3ms2704 KiB
9Wrong answer3ms2824 KiB
10Wrong answer3ms3064 KiB
11Wrong answer3ms3032 KiB
subtask40/75
12Wrong answer3ms3008 KiB
13Wrong answer3ms3124 KiB
14Wrong answer3ms3120 KiB
15Wrong answer3ms3252 KiB
16Wrong answer3ms3332 KiB
17Wrong answer3ms3340 KiB
18Wrong answer3ms3368 KiB
19Wrong answer3ms3412 KiB
20Wrong answer3ms3404 KiB
21Wrong answer3ms3408 KiB