Rezultati

Up. imeNalogaJezikRezultatČas oddaje
svetatrojica-2017 Akcija Python 3 100/100OK 20. apr '17 @ 19:49

Test Točke Porabljen spomin Porabljen čas Status
#1 7/7 8,621 MiB 0,000 s OK
#2 7/7 8,586 MiB 0,000 s OK
#3 7/7 8,609 MiB 0,000 s OK
#4 7/7 8,590 MiB 0,000 s OK
#5 8/8 8,590 MiB 0,197 s OK
#6 8/8 8,633 MiB 0,198 s OK
#7 8/8 8,594 MiB 0,197 s OK
#8 8/8 8,621 MiB 0,207 s OK
#9 8/8 8,609 MiB 0,223 s OK
#10 8/8 8,602 MiB 0,233 s OK
#11 8/8 8,613 MiB 0,223 s OK
#12 8/8 8,609 MiB 0,233 s OK
#13 8/8 8,617 MiB 0,000 s OK

Ocenjevani program (akcija2.py):
meseci = {"april": 0, "maj": 1, "junij": 2, "julij": 3, "avgust": 4, "september": 5, "oktober": 6, "november": 7, "december": 8} 
dnevi = [11, 31, 30, 31, 31, 30, 31, 30, 31]


n = int(input())
for i in range(n):
    zaloga, povp, dan, mes, leto = input().split()
    dan = int(dan[:-1])
    zaloga = int(zaloga)
    povp = int("".join(povp.split('.')))
    if(mes not in meseci.keys() or (mes == "april" and dan < 20)):
        print("V SMETI")
        continue
    if(mes == "april"): dan -=19
    ost = dan
    for j in range(meseci[mes]):
        ost += dnevi[j]
    #print(povp)
    if(zaloga * 100 > ost * povp):
        print("AKCIJA")
    else:
        print("OK")