110432024-07-05 00:35:44probaBevásárláspython3Wrong answer 50/10018ms3128 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[1]), db[1])*p[1] + (10 - (min(10, db[0]) + min(10-min(10, db[1]), db[1])))*p[2]
    print(s)
        
        
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer17ms2916 KiB
2Accepted17ms2916 KiB
3Accepted17ms2916 KiB
subtask210/10
4Accepted17ms2916 KiB
5Accepted17ms2916 KiB
6Accepted17ms3056 KiB
subtask30/20
7Accepted18ms2996 KiB
8Wrong answer17ms2916 KiB
9Wrong answer18ms2956 KiB
10Accepted17ms2916 KiB
subtask40/30
11Accepted18ms2960 KiB
12Accepted18ms2916 KiB
13Accepted17ms3128 KiB
14Wrong answer17ms2960 KiB
subtask540/40
15Accepted17ms3052 KiB
16Accepted18ms3020 KiB
17Accepted17ms2988 KiB
18Accepted17ms3044 KiB
19Accepted17ms2916 KiB
20Accepted17ms3048 KiB