Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <cstdio>
- #include <vector>
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int main() {
- /* Enter your code here. Read input from STDIN. Print output to STDOUT */
- int n,i,k,solve =0;
- cin>>n;
- for(i =0;i<n;i++)
- {
- int count = 0;
- for(int j = 0;j<3;j++)
- {
- cin>>k;
- if(k == 1) count++;
- }
- if(count>1) solve++;
- }
- cout<<solve;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement