# UVa 12798 - Handball
while True:
try:
numberOfPlayers, numberOfGames = map(int, input().split())
except:
break
playersThatScoredInAllGames = 0
for player in range(numberOfPlayers):
playerScoresByGame = map(int, input().split())
scoredInAllGames = not (0 in playerScoresByGame)
if scoredInAllGames: playersThatScoredInAllGames += 1
print(playersThatScoredInAllGames)
No comments:
Post a Comment