codeforces水题100道 第十一题 Codeforces Round #143 (Div. 2) A. Team (brute force)

时间:2023-03-09 00:17:30
codeforces水题100道 第十一题 Codeforces Round #143 (Div. 2) A. Team (brute force)

题目链接:http://www.codeforces.com/problemset/problem/231/A
题意:问n道题目当中有多少道题目是至少两个人会的。
C++代码:

#include <iostream>
using namespace std;
int n, a, b, c, ans;
int main()
{
cin >> n;
while (n--)
{
cin >>a >> b >> c;
if (a + b + c >= )
ans ++;
}
cout << ans;
return ;
}

C++