Rezultati

Up. imeNalogaJezikRezultatČas oddaje
angrynerds-2019 Malica Python 3 100/100OK 09. maj '19 @ 17:10

Test Točke Porabljen spomin Porabljen čas Status
#1 [več] 16/16 8,547 MiB 0,000 s OK
#2 [več] 16/16 9,012 MiB 0,000 s OK
#3 [več] 17/17 8,633 MiB 0,000 s OK
#4 [več] 17/17 8,699 MiB 0,000 s OK
#5 [več] 17/17 8,984 MiB 0,000 s OK
#6 [več] 17/17 8,707 MiB 0,000 s OK

Ocenjevani program (malica.py):

if __name__ == '__main__':
    N,U = input().split()
    N = int(N)
    U = int(U)
    #N st ekip
    #U st ucilnic
    resitev = [[0,0,0,0]for i in range(U)]
    for i in range(N):
        line = input().split(' ')
        st_clanov = int(line[0])
        st_uc = int(line[1])
        for j in range(st_clanov):
            line2 = input().split(" ")
            index = 0
            if line2[0] == 'sirov':
                index = 0
            elif line2[0] == 'veganski':
                index = 1
            else:
                index = 2

            resitev[st_uc-1][index] = resitev[st_uc-1][index] +1
    for l in resitev:
        print(l[0],l[1],l[2])