19332022-12-11 23:38:35mintaaronBevásárláspython3Wrong answer 0/10018ms13356 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')
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer18ms11108 KiB
2Wrong answer17ms11312 KiB
3Wrong answer17ms11692 KiB
subtask20/10
4Wrong answer17ms11800 KiB
5Wrong answer17ms12192 KiB
6Wrong answer17ms12312 KiB
subtask30/20
7Wrong answer17ms12352 KiB
8Wrong answer17ms12452 KiB
9Wrong answer16ms12364 KiB
10Wrong answer17ms12844 KiB
subtask40/30
11Wrong answer17ms12704 KiB
12Wrong answer16ms13024 KiB
13Wrong answer17ms13020 KiB
14Wrong answer17ms12912 KiB
subtask50/40
15Wrong answer16ms13156 KiB
16Wrong answer16ms13256 KiB
17Wrong answer16ms13356 KiB
18Wrong answer16ms13032 KiB
19Wrong answer16ms13072 KiB
20Wrong answer16ms13200 KiB