Rezultati

Up. imeNalogaJezikRezultatČas oddaje
narcos Akcija Python 3 100/100OK 20. apr '17 @ 19:20

Test Točke Porabljen spomin Porabljen čas Status
#1 7/7 8,602 MiB 0,000 s OK
#2 7/7 8,605 MiB 0,000 s OK
#3 7/7 8,621 MiB 0,000 s OK
#4 7/7 8,910 MiB 0,000 s OK
#5 8/8 9,734 MiB 0,000 s OK
#6 8/8 9,637 MiB 0,000 s OK
#7 8/8 9,766 MiB 0,000 s OK
#8 8/8 9,762 MiB 0,000 s OK
#9 8/8 9,797 MiB 0,000 s OK
#10 8/8 9,746 MiB 0,000 s OK
#11 8/8 9,703 MiB 0,000 s OK
#12 8/8 9,836 MiB 0,000 s OK
#13 8/8 8,617 MiB 0,000 s OK

Ocenjevani program (tiest2.py):
import sys
import math
#f = open('test.txt','r')
f = sys.stdin
m = ['januar', 'februar', 'marec', 'april', 'maj', 'junij', 'julij',
     'avgust', 'september', 'oktober', 'november', 'december']
d = [31,28,31,30,31,30,31,31,30,31,30,31]
d1 = d[4:]
lines = f.read().strip().split('\n')
lines = lines[1:]
for x in lines:
    
    x = x.split()
    a1 = int(x[1][:-3])
    a2 = int(x[1][-2:])
    ava = a1*100+a2
    dita = int(x[2][:-1])
    muji = m.index(x[3])
    if muji<3:
        print('V SMETI')
    elif muji==3:
        if dita <20:
            print('V SMETI')
        else:
            a = dita - 19
            if ava*a >= 100*int(x[0]):
                print('OK')
            else:
                print('AKCIJA')
    else:
        n = 11
        n += sum(d[4:muji])
        n+= dita
        
        if ava*n >= 100*int(x[0]):
            print('OK')
        else:
            print('AKCIJA')
f.close()