Computer Science, asked by mattammahesh2021, 2 months ago

CP friends (100 Marks)
There are 3 friends who are trying to solve N problems. If anyone of them can solve the problem successfully then he will be represented by 1 else 0.

There is one more condition that they will implement the ith problem only when atleast 2 of them will be able to solve the problem, otherwise they will not be able to solve the ith problem.

You need to output the number of problems they can solve.


Input Format
First line of input consists of a single integer N, number of problems.
Next N lines each consists of three space-separated integers, representing if the problem is solvable by the person or not. Each integer is either 0 or 1.


Constraints
1<=N<=10000

Output Format
Output the number of problems they can solve.

Sample TestCase 1
Input
5
0 0 1
1 1 1
0 0 1
1 1 0
1 0 0
write a ajavascript program


Answers

Answered by nv45708
0

Answer:

Geography is the study of places and the relationships between people and their environments. Geographers explore both the physical properties of Earth's surface and the human societies spread across it. ... Geography seeks to understand where things are found, why they are there, and how they develop and change over time.

Similar questions