Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 [več] 16/16 8,602 MiB 0,000 s OK
#2 [več] 16/16 9,098 MiB 0,000 s OK
#3 [več] 17/17 8,563 MiB 0,000 s OK
#4 [več] 17/17 8,625 MiB 0,000 s OK
#5 [več] 17/17 9,027 MiB 0,000 s OK
#6 [več] 17/17 8,633 MiB 0,000 s OK

Ocenjevani program (malica.py):
n, u = list(map(int, input().split()))

ucilnice = {}
for i in range(u):
    ucilnice[i] = {
        0: 0,
        1: 0,
        2: 0
    }

for i in range(n):
    ekipa = input().split()
    st_clanov = int(ekipa[0])
    ucilnica = int(ekipa[1]) - 1
    ime_ekipe = " ".join(ekipa[2:])

    for x in range(st_clanov):
        clan = input().split()
        sendvic = clan[0]
        if sendvic == "sirov":
            ucilnice[ucilnica][0] += 1
        elif sendvic == "veganski":
            ucilnice[ucilnica][1] += 1
        else:
            ucilnice[ucilnica][2] += 1
for i in range(u):
    print(" ".join(list(map(str, ucilnice[i].values()))))