Advertisement
ivangarvanliev

Untitled

Jun 2nd, 2024
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4.     int n;
  5.     cin >> n;
  6.  
  7.     int zadaci = 0;
  8.  
  9.     for (int i = 0; i < n; i++) {
  10.         int petya, vasya, tonya;
  11.         cin >> petya >> vasya >> tonya;
  12.         if (petya + vasya + tonya >= 2) {
  13.             zadaci++;
  14.         }
  15.     }
  16.  
  17.     cout << zadaci<< endl;
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement