Rezultati

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

Test Točke Porabljen spomin Porabljen čas Status
#1 [več] 16/16 10,379 MiB 0,000 s OK
#2 [več] 16/16 10,637 MiB 0,000 s OK
#3 [več] 17/17 10,293 MiB 0,000 s OK
#4 [več] 17/17 10,359 MiB 0,000 s OK
#5 [več] 17/17 10,656 MiB 0,000 s OK
#6 [več] 17/17 10,395 MiB 0,000 s OK

Ocenjevani program (a.py):
from collections import defaultdict

N, U = map(int, input().split())


ucilnice = [[0,0,0] for x in range(U)]
for i in range(N):
  t, r = map(int, input().split()[:2])
  
  r = r - 1
  for j in range(t):
    sendvic = input().split()[0]
    if sendvic == 'sirov':
      ucilnice[r][0] += 1
    elif sendvic == 'veganski':
      ucilnice[r][1] += 1
    else:
      ucilnice[r][2] += 1

for i in range(U):
  print("{} {} {}".format(*ucilnice[i]))