codeforces 231A (brute force, greedy )

http://codeforces.com/problemset/problem/231/A

生词:

implement vt.使贯彻,使执行

题面:

太水,不想说。

// codeforces
// 231A
// brute force, greedy
#include 
using namespace std;
int main() {
    int n, cnt, times, solve;
    cin >> n;
    solve = 0;
    while (n--) {
        times = 3;
        cnt = 0;
        while (times--) {
            int cur;
            cin >> cur;
            if (cur)
                cnt++;
        }
        if (cnt >= 2)
            solve++;
    }
    cout << solve;
    return 0;
}

你可能感兴趣的:(codeforces 231A (brute force, greedy ))