EasyRating 800
Team Decision
Each of n problems has three 0/1 votes. The team solves a problem if at least two members are sure (vote 1). Count the problems they solve.
Input
n, then n lines of three 0/1 values.
Output
A count.
Sample 1
Input
3 1 1 0 1 1 1 1 0 0
Output
2
Sample 2
Input
2 1 0 0 0 1 1
Output
1
Output appears here