2347 | 2023-01-10 22:20:24 | kristof | Bevásárlás | python3 | Wrong answer 40/100 | 17ms | 13512 KiB |
A = int(input())
B = int(input())
C = int(input())
aMin = 0
bMin = 0
cMin = 0
osszeg = 0
aMin = min(A, 10)
if aMin < 10:
bMin = min((10-aMin), B)
if aMin + bMin < 10:
cMin = min(10-(aMin+bMin), C)
print(aMin * 300+ bMin * 350 + cMin *400)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11040 KiB | ||||
2 | Wrong answer | 16ms | 11100 KiB | ||||
3 | Accepted | 16ms | 11420 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 16ms | 11488 KiB | ||||
5 | Accepted | 17ms | 11884 KiB | ||||
6 | Accepted | 17ms | 11860 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Accepted | 16ms | 12040 KiB | ||||
8 | Accepted | 17ms | 12340 KiB | ||||
9 | Accepted | 16ms | 12380 KiB | ||||
10 | Wrong answer | 17ms | 12412 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 17ms | 12688 KiB | ||||
12 | Accepted | 17ms | 12848 KiB | ||||
13 | Accepted | 17ms | 12920 KiB | ||||
14 | Accepted | 17ms | 13128 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Accepted | 17ms | 13200 KiB | ||||
16 | Wrong answer | 17ms | 13296 KiB | ||||
17 | Wrong answer | 17ms | 13356 KiB | ||||
18 | Accepted | 17ms | 13376 KiB | ||||
19 | Accepted | 17ms | 13512 KiB | ||||
20 | Accepted | 17ms | 13448 KiB |