1933 | 2022-12-11 23:38:35 | mintaaron | Bevásárlás | python3 | Wrong answer 0/100 | 18ms | 13356 KiB |
a=int(input("Hány doboz almalé van a boltban? "))
b=int(input("Hány doboz baracklé van a boltban? "))
c=int(input("Hány doboz csresznyelé van a boltban? "))
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 | Wrong answer | 18ms | 11108 KiB | ||||
2 | Wrong answer | 17ms | 11312 KiB | ||||
3 | Wrong answer | 17ms | 11692 KiB | ||||
subtask2 | 0/10 | ||||||
4 | Wrong answer | 17ms | 11800 KiB | ||||
5 | Wrong answer | 17ms | 12192 KiB | ||||
6 | Wrong answer | 17ms | 12312 KiB | ||||
subtask3 | 0/20 | ||||||
7 | Wrong answer | 17ms | 12352 KiB | ||||
8 | Wrong answer | 17ms | 12452 KiB | ||||
9 | Wrong answer | 16ms | 12364 KiB | ||||
10 | Wrong answer | 17ms | 12844 KiB | ||||
subtask4 | 0/30 | ||||||
11 | Wrong answer | 17ms | 12704 KiB | ||||
12 | Wrong answer | 16ms | 13024 KiB | ||||
13 | Wrong answer | 17ms | 13020 KiB | ||||
14 | Wrong answer | 17ms | 12912 KiB | ||||
subtask5 | 0/40 | ||||||
15 | Wrong answer | 16ms | 13156 KiB | ||||
16 | Wrong answer | 16ms | 13256 KiB | ||||
17 | Wrong answer | 16ms | 13356 KiB | ||||
18 | Wrong answer | 16ms | 13032 KiB | ||||
19 | Wrong answer | 16ms | 13072 KiB | ||||
20 | Wrong answer | 16ms | 13200 KiB |