Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 7/7 8,930 MiB 0,000 s OK
#2 7/7 8,949 MiB 0,000 s OK
#3 7/7 8,945 MiB 0,000 s OK
#4 7/7 8,992 MiB 0,000 s OK
#5 8/8 9,211 MiB 0,000 s OK
#6 8/8 9,227 MiB 0,000 s OK
#7 8/8 9,180 MiB 0,000 s OK
#8 8/8 9,273 MiB 0,000 s OK
#9 8/8 9,309 MiB 0,000 s OK
#10 8/8 9,215 MiB 0,000 s OK
#11 8/8 9,164 MiB 0,000 s OK
#12 8/8 9,281 MiB 0,000 s OK
#13 8/8 8,945 MiB 0,000 s OK

Ocenjevani program (a.py):
import sys


import datetime

tod = datetime.date(year=2017, day=20, month=4)

ch = tod - datetime.date(year=2017, day=21, month=4)

#print(ch.days)

sys.setrecursionlimit(10**9*2)

#sys.stdin = open("a.in")

sin = sys.stdin

mesci = [31,28,31,30,31,30,31,31,30,31,30,31]
mesci2 = ["januar", "februar", "marec", "april", "maj", "junij", "julij", "avgust", "september", "oktober", "november", "december"]
mesci3 = {mesci2[i]: i for i in range(len(mesci2))}


N = int(sin.readline())

cur = 31+28+31+19

def get_dst(date, mon):
    #print(date, mon)
    return (datetime.date(year=2017, day=date, month=mon) - tod).days

for j in range(N):
    lin = sin.readline().strip()
    num, per, date, mon, _ = lin.split()
    mon = mesci3[mon] + 1
    dst = get_dst(int(date.strip(".")), mon) + 1
    per = float(per)
    #print(dst)
    if dst <= 0:
        print("V SMETI")
    elif abs(per*dst - int(num)) <= 10**-6 or per*dst > int(num):
        print("OK")
    else:
        print("AKCIJA")
    #print(dst)
    #print(num, per, date, mon)