6205 | 2023-11-08 09:03:05 | SzorenyiZalanAndras | Bevásárlás | python3 | Runtime error 0/100 | 17ms | 13864 KiB |
a=int(input())
b=int(input())
c=int(input())
kell=10
fizet=0
if (a+b+c)>=10:
if kell>a:
fizet+=a*300
kell-=a
a=0
else:
fizet+=kell*300
kell=0
if kell>b:
fizet+=b*350
kell-=b
b=0
else:
fizet+=kell*350
kell=0
if kell>c:
fizet+=c*400
kell-=c
else:
fizet+=kell*400
kell=0
print(fizet)
else:
print(-1)
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Runtime error | 17ms | 10808 KiB | ||||
2 | Runtime error | 17ms | 10988 KiB | ||||
3 | Runtime error | 17ms | 11268 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Runtime error | 17ms | 11348 KiB | ||||
5 | Runtime error | 17ms | 11464 KiB | ||||
6 | Runtime error | 17ms | 11768 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Runtime error | 17ms | 11692 KiB | ||||
8 | Runtime error | 17ms | 12168 KiB | ||||
9 | Runtime error | 17ms | 12428 KiB | ||||
10 | Runtime error | 17ms | 12332 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Runtime error | 17ms | 12836 KiB | ||||
12 | Runtime error | 17ms | 12644 KiB | ||||
13 | Runtime error | 17ms | 12748 KiB | ||||
14 | Runtime error | 17ms | 13076 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Runtime error | 17ms | 13216 KiB | ||||
16 | Runtime error | 17ms | 13336 KiB | ||||
17 | Runtime error | 17ms | 13264 KiB | ||||
18 | Runtime error | 17ms | 13652 KiB | ||||
19 | Runtime error | 17ms | 13864 KiB | ||||
20 | Runtime error | 17ms | 13568 KiB |