62052023-11-08 09:03:05SzorenyiZalanAndrasBevásárláspython3Runtime error 0/10017ms13864 KiB
    a=int(input())
    b=int(input())
    c=int(input())
    kell=10
    fizet=0
    if (a+b+c)>=10:
            if kell>a:
                fizet+=a*300
                kell-=a
                a=0
            else:
                fizet+=kell*300
                kell=0
            if kell>b:
                fizet+=b*350
                kell-=b
                b=0
            else:
                fizet+=kell*350
                kell=0
            if kell>c:
                fizet+=c*400
                kell-=c
            else:
                fizet+=kell*400
                kell=0
            print(fizet)
    else:
        print(-1)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms10808 KiB
2Runtime error17ms10988 KiB
3Runtime error17ms11268 KiB
subtask20/10
4Runtime error17ms11348 KiB
5Runtime error17ms11464 KiB
6Runtime error17ms11768 KiB
subtask30/20
7Runtime error17ms11692 KiB
8Runtime error17ms12168 KiB
9Runtime error17ms12428 KiB
10Runtime error17ms12332 KiB
subtask40/30
11Runtime error17ms12836 KiB
12Runtime error17ms12644 KiB
13Runtime error17ms12748 KiB
14Runtime error17ms13076 KiB
subtask50/40
15Runtime error17ms13216 KiB
16Runtime error17ms13336 KiB
17Runtime error17ms13264 KiB
18Runtime error17ms13652 KiB
19Runtime error17ms13864 KiB
20Runtime error17ms13568 KiB