117872024-11-10 18:46:09MBevásárláspython3Wrong answer 0/10017ms3184 KiB
A = int(input("A: "))
B = int(input("B: "))
C = int(input("C: "))

if A + B + C < 10:
    print(-1)
    exit()

price = 0
for i in range(10):
    if A != 0:
        price += 300
        A -= 1
    
    elif B != 0:
        price += 350
        B -= 1

    else:
        price += (10-i)*400
        break

print(price)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer14ms2872 KiB
2Wrong answer17ms2872 KiB
3Wrong answer14ms2872 KiB
subtask20/10
4Wrong answer16ms3088 KiB
5Wrong answer16ms3100 KiB
6Wrong answer16ms3064 KiB
subtask30/20
7Wrong answer14ms2872 KiB
8Wrong answer14ms3184 KiB
9Wrong answer16ms2872 KiB
10Wrong answer14ms2888 KiB
subtask40/30
11Wrong answer14ms2940 KiB
12Wrong answer16ms3032 KiB
13Wrong answer14ms2968 KiB
14Wrong answer16ms2872 KiB
subtask50/40
15Wrong answer16ms3056 KiB
16Wrong answer16ms2964 KiB
17Wrong answer16ms2872 KiB
18Wrong answer16ms2872 KiB
19Wrong answer16ms3084 KiB
20Wrong answer16ms3028 KiB