1935 | 2022-12-12 07:41:04 | CodeBreakers | Bevásárlás | python3 | Accepted 100/100 | 17ms | 13848 KiB |
#import sys
#sys.stdin=open("input2.txt","r")
a=int(input())
b=int(input())
c=int(input())
alma=300
bari=350
cseri=400
kell=10
ossz=0
if a+b+c>=10:
while kell != 0:
if a != 0:
ossz += alma
a -= 1
elif b != 0:
ossz += bari
b -= 1
elif c != 0:
ossz+= cseri
c -= 1
kell -= 1
if kell==0:
print(ossz)
else:
print('-1')
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11156 KiB | ||||
2 | Accepted | 17ms | 11504 KiB | ||||
3 | Accepted | 16ms | 11812 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 17ms | 12152 KiB | ||||
5 | Accepted | 17ms | 12388 KiB | ||||
6 | Accepted | 17ms | 12412 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 16ms | 12640 KiB | ||||
8 | Accepted | 16ms | 12740 KiB | ||||
9 | Accepted | 17ms | 12828 KiB | ||||
10 | Accepted | 16ms | 12988 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 16ms | 12968 KiB | ||||
12 | Accepted | 16ms | 13076 KiB | ||||
13 | Accepted | 17ms | 13020 KiB | ||||
14 | Accepted | 17ms | 12888 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 17ms | 13004 KiB | ||||
16 | Accepted | 17ms | 13236 KiB | ||||
17 | Accepted | 17ms | 13544 KiB | ||||
18 | Accepted | 16ms | 13252 KiB | ||||
19 | Accepted | 16ms | 13848 KiB | ||||
20 | Accepted | 16ms | 13376 KiB |