Rezultati

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

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

Ocenjevani program (malica.py):
n, u = map(int, input().split())
s = [0 for i in range(u+1)]
v = [0 for i in range(u+1)]
o = [0 for i in range(u+1)]
for i in range(n):
	line = input().split()
	osebe = int(line[0])
	uc = int(line[1])
	for j in range(osebe):
		l = input().split()
		if(l[0] == "sirov"):
			s[uc] += 1
		elif(l[0] == "veganski"):
			v[uc] += 1
		else:
			o[uc] += 1

for i in range(1, u+1):
	print("{0} {1} {2}".format(s[i], v[i], o[i]))