fork download
  1. /*
  2.   Author: Anas
  3.   Date: 25-09-2024
  4.   Time: 21:33:40
  5.   File: a.cpp
  6. */
  7. #include <bits/stdc++.h>
  8. using namespace std;
  9.  
  10. using ll = long long;
  11.  
  12. int main() {
  13. ios::sync_with_stdio(false);
  14. cin.tie(NULL);
  15.  
  16. ll t=1;
  17. // cin >> t;
  18.  
  19. // auto Anas = [&]() {
  20.  
  21.  
  22. // };
  23.  
  24. while (t--) {
  25. // Anas();
  26. ll n;
  27. cin>>n;
  28. ll cnt=0;
  29. while (n--)
  30. {
  31. ll a,b,c;
  32. cin>>a>>b>>c;
  33. if(a==1 && b==1 || b==1 && c==1 || a==1 && c==1)
  34. {
  35. cnt++;
  36. }
  37. }
  38. cout<<cnt<<"\n";
  39. }
  40.  
  41. return 0;
  42. }
  43.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
0