1928 | 2022-12-11 13:54:54 | mintaaron | Bevásárlás | python3 | Accepted 100/100 | 17ms | 13312 KiB |
a = int(input())
b = int(input())
c = int(input())
if (a+b+c)<10:
print("-1")
else:
osszeg=0
db=0
while a>0 and db<10:
osszeg+=300
db+=1
a-=1
while b>0 and db<10:
osszeg+=350
db+=1
b-=1
while c>0 and db<10:
osszeg+=400
db+=1
c-=1
print(osszeg)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11152 KiB | ||||
2 | Accepted | 17ms | 11428 KiB | ||||
3 | Accepted | 17ms | 11396 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 17ms | 11736 KiB | ||||
5 | Accepted | 17ms | 11972 KiB | ||||
6 | Accepted | 16ms | 12564 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 16ms | 12624 KiB | ||||
8 | Accepted | 17ms | 12772 KiB | ||||
9 | Accepted | 17ms | 12988 KiB | ||||
10 | Accepted | 17ms | 12716 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 16ms | 12712 KiB | ||||
12 | Accepted | 17ms | 13004 KiB | ||||
13 | Accepted | 16ms | 12940 KiB | ||||
14 | Accepted | 17ms | 12828 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 17ms | 12844 KiB | ||||
16 | Accepted | 17ms | 12892 KiB | ||||
17 | Accepted | 17ms | 12864 KiB | ||||
18 | Accepted | 17ms | 13312 KiB | ||||
19 | Accepted | 17ms | 13112 KiB | ||||
20 | Accepted | 16ms | 13184 KiB |