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 >= 2)
            ans ++;
    }
    cout << ans;
    return 0;
}
C++
原文地址:https://www.cnblogs.com/moonlightpoet/p/5689041.html