19252022-12-11 13:45:34mintaaronBevásárláspython3Runtime error 0/10017ms13480 KiB
#import sys
a = int(sys.stdin.readline())
b = int(sys.stdin.readline())
c = int(sys.stdin.readline())


if (a+b+c)<10:
    print("-1")
else:
    osszeg=0
    db=0
    while a>0 and db<10:
        osszeg+=300
        db+=1
        a-=1
        
    while b>0 and db<10:
        osszeg+=350
        db+=1
        b-=1
        
    while c>0 and db<10:
        osszeg+=400
        db+=1
        c-=1
    print(osszeg)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Runtime error17ms11040 KiB
2Runtime error17ms11152 KiB
3Runtime error17ms11340 KiB
subtask20/10
4Runtime error17ms11540 KiB
5Runtime error17ms11428 KiB
6Runtime error17ms11960 KiB
subtask30/20
7Runtime error16ms11672 KiB
8Runtime error16ms12124 KiB
9Runtime error16ms12072 KiB
10Runtime error17ms12224 KiB
subtask40/30
11Runtime error17ms12572 KiB
12Runtime error17ms12852 KiB
13Runtime error17ms12724 KiB
14Runtime error17ms12580 KiB
subtask50/40
15Runtime error16ms12908 KiB
16Runtime error17ms13032 KiB
17Runtime error17ms13352 KiB
18Runtime error17ms13480 KiB
19Runtime error17ms13212 KiB
20Runtime error17ms13380 KiB