Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Codeforces Round 231A
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, p[1001], v[1001], t[1001], sum, answ=0;
- cin >> n;
- for(int i=0;i<n;i++)
- {
- cin >> p[i] >> v[i] >> t[i];
- sum=p[i]+v[i]+t[i];
- if(sum>=2){answ++;}
- }
- cout << answ;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement