Rezultati

Up. imeNalogaJezikRezultatČas oddaje
kosmati-mucki-2019 Malica Python 3 100/100OK 09. maj '19 @ 16:50

Test Točke Porabljen spomin Porabljen čas Status
#1 [več] 16/16 8,605 MiB 0,000 s OK
#2 [več] 16/16 8,680 MiB 0,000 s OK
#3 [več] 17/17 8,680 MiB 0,000 s OK
#4 [več] 17/17 8,688 MiB 0,000 s OK
#5 [več] 17/17 8,742 MiB 0,000 s OK
#6 [več] 17/17 8,531 MiB 0,000 s OK

Ocenjevani program (kalamari.py):
N,U = map(int, input().split())
tabela = [[0,0,0] for _ in range(U)]
for i in range(N):
    inp = input().split()
    T,R = map(int, inp[:2])
    for j in range(T):
        yxz = input().split()
        tip = yxz[0]
        if tip == 'sirov':
            tabela[R-1][0] += 1
        elif tip == 'veganski':
            tabela[R-1][1] += 1
        else:
            tabela[R-1][2] += 1

for i in range(U):
    print(str(tabela[i][0]) + ' ' + str(tabela[i][1]) + ' ' + str(tabela[i][2]))