11787 | 2024-11-10 18:46:09 | M | Bevásárlás | python3 | Wrong answer 0/100 | 17ms | 3184 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)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 14ms | 2872 KiB | ||||
2 | Wrong answer | 17ms | 2872 KiB | ||||
3 | Wrong answer | 14ms | 2872 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 16ms | 3088 KiB | ||||
5 | Wrong answer | 16ms | 3100 KiB | ||||
6 | Wrong answer | 16ms | 3064 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Wrong answer | 14ms | 2872 KiB | ||||
8 | Wrong answer | 14ms | 3184 KiB | ||||
9 | Wrong answer | 16ms | 2872 KiB | ||||
10 | Wrong answer | 14ms | 2888 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Wrong answer | 14ms | 2940 KiB | ||||
12 | Wrong answer | 16ms | 3032 KiB | ||||
13 | Wrong answer | 14ms | 2968 KiB | ||||
14 | Wrong answer | 16ms | 2872 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Wrong answer | 16ms | 3056 KiB | ||||
16 | Wrong answer | 16ms | 2964 KiB | ||||
17 | Wrong answer | 16ms | 2872 KiB | ||||
18 | Wrong answer | 16ms | 2872 KiB | ||||
19 | Wrong answer | 16ms | 3084 KiB | ||||
20 | Wrong answer | 16ms | 3028 KiB |