6206 | 2023-11-08 09:04:22 | SzorenyiZalanAndras | Bevásárlás | python3 | Accepted 100/100 | 18ms | 13612 KiB |
def main():
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)
main()
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11144 KiB | ||||
2 | Accepted | 17ms | 11404 KiB | ||||
3 | Accepted | 17ms | 11500 KiB | ||||
subtask2 | 10/10 | ||||||
4 | Accepted | 17ms | 11720 KiB | ||||
5 | Accepted | 17ms | 12032 KiB | ||||
6 | Accepted | 17ms | 11736 KiB | ||||
subtask3 | 20/20 | ||||||
7 | Accepted | 17ms | 11996 KiB | ||||
8 | Accepted | 17ms | 11784 KiB | ||||
9 | Accepted | 17ms | 12248 KiB | ||||
10 | Accepted | 17ms | 12564 KiB | ||||
subtask4 | 30/30 | ||||||
11 | Accepted | 17ms | 12688 KiB | ||||
12 | Accepted | 17ms | 12592 KiB | ||||
13 | Accepted | 17ms | 12476 KiB | ||||
14 | Accepted | 18ms | 12704 KiB | ||||
subtask5 | 40/40 | ||||||
15 | Accepted | 17ms | 13044 KiB | ||||
16 | Accepted | 17ms | 13240 KiB | ||||
17 | Accepted | 17ms | 13388 KiB | ||||
18 | Accepted | 17ms | 13328 KiB | ||||
19 | Accepted | 17ms | 13336 KiB | ||||
20 | Accepted | 17ms | 13612 KiB |