1926 | 2022-12-11 13:47:09 | mintaaron | Bevásárlás | python3 | Accepted 100/100 | 17ms | 13756 KiB |
import sys
a = int(sys.stdin.readline())
b = int(sys.stdin.readline())
c = int(sys.stdin.readline())
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 | 11124 KiB | ||||
2 | Accepted | 17ms | 11316 KiB | ||||
3 | Accepted | 17ms | 11412 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 16ms | 11776 KiB | ||||
5 | Accepted | 17ms | 12092 KiB | ||||
6 | Accepted | 17ms | 12348 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 16ms | 12344 KiB | ||||
8 | Accepted | 17ms | 12396 KiB | ||||
9 | Accepted | 16ms | 12264 KiB | ||||
10 | Accepted | 17ms | 12600 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 16ms | 12684 KiB | ||||
12 | Accepted | 17ms | 12780 KiB | ||||
13 | Accepted | 17ms | 13096 KiB | ||||
14 | Accepted | 17ms | 12976 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 17ms | 12788 KiB | ||||
16 | Accepted | 17ms | 13368 KiB | ||||
17 | Accepted | 17ms | 13320 KiB | ||||
18 | Accepted | 17ms | 13356 KiB | ||||
19 | Accepted | 17ms | 13376 KiB | ||||
20 | Accepted | 17ms | 13756 KiB |