1927 | 2022-12-11 13:52:19 | mintaaron | Bevásárlás | python3 | Accepted 100/100 | 17ms | 13408 KiB |
import sys
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 | 11256 KiB | ||||
2 | Accepted | 17ms | 11268 KiB | ||||
3 | Accepted | 17ms | 11264 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 16ms | 11676 KiB | ||||
5 | Accepted | 16ms | 12160 KiB | ||||
6 | Accepted | 16ms | 12068 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 17ms | 12284 KiB | ||||
8 | Accepted | 17ms | 12644 KiB | ||||
9 | Accepted | 16ms | 12464 KiB | ||||
10 | Accepted | 16ms | 12568 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 17ms | 12848 KiB | ||||
12 | Accepted | 17ms | 12728 KiB | ||||
13 | Accepted | 16ms | 13096 KiB | ||||
14 | Accepted | 16ms | 12916 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 16ms | 12896 KiB | ||||
16 | Accepted | 17ms | 12780 KiB | ||||
17 | Accepted | 17ms | 13024 KiB | ||||
18 | Accepted | 17ms | 12852 KiB | ||||
19 | Accepted | 16ms | 13000 KiB | ||||
20 | Accepted | 17ms | 13408 KiB |