Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 7/7 8,621 MiB 0,000 s OK
#2 7/7 8,617 MiB 0,000 s OK
#3 7/7 8,625 MiB 0,000 s OK
#4 7/7 8,602 MiB 0,000 s OK
#5 8/8 8,609 MiB 0,263 s OK
#6 8/8 8,609 MiB 0,248 s OK
#7 8/8 8,629 MiB 0,233 s OK
#8 8/8 8,602 MiB 0,243 s OK
#9 8/8 8,613 MiB 0,273 s OK
#10 8/8 8,613 MiB 0,248 s OK
#11 8/8 8,613 MiB 0,228 s OK
#12 8/8 8,633 MiB 0,243 s OK
#13 8/8 8,621 MiB 0,000 s OK

Ocenjevani program (akcija.py):
N=int(input().strip())
# eps = 10^(-10)

def dan(d1,d2):
    koledar= {"januar":0,
        "februar":31,
        "marec":59,
        "april":59+31,
        "maj":59+31+30,
        "junij":59+31+30+31,
        "julij":59+31+30+31+30,
        "avgust":59+31+30+31+30+31,
        "september":59+31+30+31+30+31+31,
        "oktober":59+31+30+31+30+31+31+30,
        "november":59+31+30+31+30+31+31+30+31,
        "december": 59 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31+30}
    return d1+koledar[d2]

for i in range(N):
    line=input().strip()
    line=line.split( )
    fi=int(line[0])
    zi=float(line[1])
    d1=int(line[2].strip("."))
    d2=line[3]
    danes=dan(20,"april")
    datum=dan(d1,d2)
    if datum<danes:
        print("V SMETI")
    else:
        if zi>=fi/(datum-danes+1):
            print("OK")
        else:
            print("AKCIJA")