23482023-01-10 22:21:05kristofBevásárláspython3Accepted 100/10017ms13580 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)

if A + B + C < 10:
    print(-1)
else:
    print(aMin * 300+ bMin * 350 + cMin *400)
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms11116 KiB
2Accepted17ms11444 KiB
3Accepted16ms11728 KiB
subtask210/10
4Accepted16ms11908 KiB
5Accepted16ms11852 KiB
6Accepted17ms12204 KiB
subtask320/20
7Accepted16ms11908 KiB
8Accepted17ms12220 KiB
9Accepted17ms12292 KiB
10Accepted16ms12344 KiB
subtask430/30
11Accepted17ms12400 KiB
12Accepted17ms12352 KiB
13Accepted17ms12388 KiB
14Accepted17ms12624 KiB
subtask540/40
15Accepted17ms13104 KiB
16Accepted17ms12932 KiB
17Accepted17ms13236 KiB
18Accepted17ms13308 KiB
19Accepted17ms13324 KiB
20Accepted17ms13580 KiB