Codeforces-SolutionsA/231A-Team/231A.cpp

19 lines
288 B
C++
Raw Normal View History

2023-06-07 22:14:41 +08:00
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,i,sum,count=0;
int p[3];
cin>>n;
while(n--)
{
sum=0;
for(i=0;i<3;i++)
{
cin>>p[i];
sum+=p[i];
}
if(sum>=2) count++;
}
cout<<count;
}