https://codeforces.com/problemset/problem/231/A
#include<bits/stdc++.h>
using namespace std;
int ans;
int main(void)
{
int t; cin>>t;
while(t--)
{
int a,b,c; cin>>a>>b>>c;
int sum=a+b+c;
if(sum>=2) ans++;
}
cout<<ans;
}
2023-10-02 23:05:10
https://codeforces.com/problemset/problem/231/A
#include<bits/stdc++.h>
using namespace std;
int ans;
int main(void)
{
int t; cin>>t;
while(t--)
{
int a,b,c; cin>>a>>b>>c;
int sum=a+b+c;
if(sum>=2) ans++;
}
cout<<ans;
}