Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 [več] 16/16 8,695 MiB 0,000 s OK
#2 [več] 16/16 8,762 MiB 0,000 s OK
#3 [več] 17/17 8,535 MiB 0,000 s OK
#4 [več] 17/17 8,676 MiB 0,000 s OK
#5 [več] 17/17 8,754 MiB 0,000 s OK
#6 [več] 17/17 8,535 MiB 0,000 s OK

Ocenjevani program (malca.py):
N, U = map(int, input().split())

ucilnice = [[0, 0, 0] for i in range(U)]

for i in range(N):
    T, R, *_ = input().split()
    T, R = int(T), int(R) - 1

    for clan in range(T):
        tip = input().split()[0]
        
        if tip == 'sirov':
            ucilnice[R][0] += 1
        elif tip == 'veganski':
            ucilnice[R][1] += 1
        else:
            ucilnice[R][2] += 1

for u in ucilnice:
    print(' '.join(map(str, u)))