110442024-07-05 00:38:02probaBevásárláspython3Accepted 100/10018ms3192 KiB

db, p = [int(input()) for i in range(3)], [300, 350, 400]

if sum(db) < 10:
    print(-1)
else:
    s = min(10, db[0])*p[0] + min(10 - min(10, db[0]), db[1])*p[1] + (10 - (min(10, db[0]) + min(10-min(10, db[0]), db[1])))*p[2]
    print(s)
        
        
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted17ms2916 KiB
2Accepted17ms2916 KiB
3Accepted17ms2920 KiB
subtask210/10
4Accepted17ms2916 KiB
5Accepted17ms2936 KiB
6Accepted17ms2916 KiB
subtask320/20
7Accepted17ms3044 KiB
8Accepted17ms3048 KiB
9Accepted17ms3192 KiB
10Accepted17ms2916 KiB
subtask430/30
11Accepted18ms2916 KiB
12Accepted17ms2960 KiB
13Accepted18ms2960 KiB
14Accepted17ms2952 KiB
subtask540/40
15Accepted17ms2976 KiB
16Accepted18ms3192 KiB
17Accepted17ms3040 KiB
18Accepted17ms3044 KiB
19Accepted17ms3064 KiB
20Accepted17ms2916 KiB