Rezultati

Up. imeNalogaJezikRezultatČas oddaje
boku-yes-pico-2019 Malica Python 3 100/100OK 09. maj '19 @ 16:41

Test Točke Porabljen spomin Porabljen čas Status
#1 [več] 16/16 8,523 MiB 0,000 s OK
#2 [več] 16/16 8,680 MiB 0,000 s OK
#3 [več] 17/17 8,699 MiB 0,000 s OK
#4 [več] 17/17 8,527 MiB 0,000 s OK
#5 [več] 17/17 8,820 MiB 0,000 s OK
#6 [več] 17/17 8,535 MiB 0,000 s OK

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

stev = [[0]*3 for _ in range(U)]


for i in range(N):
    Ti, Ri =  map(int, input().split()[:2])

    for j in range(Ti):
        s = input().split()[0]
        if s == 'sirov':
            stev[Ri-1][0] += 1
        elif s == 'veganski':
            stev[Ri-1][1] += 1
        else:
            stev[Ri-1][2] += 1

for i in range(U):
    print("{} {} {}".format(stev[i][0], stev[i][1], stev[i][2]))