Codeforces Round #143 (Div. 2) A. Team

题目:http://codeforces.com/contest/231/problem/A

思路:模拟法

#include <iostream>

using namespace std;

int main()
{
    int n;
    cin>>n;
    int ans=0;
    for (int i = 0; i < n; i++)
    {
        int a,b,c;
        cin>>a>>b>>c;
        if(a+b+c>=2) ans++;
    }
    cout << ans;
    return 0;
}

 

posted @ 2013-01-23 12:23  Daniel Qiu  阅读(134)  评论(0编辑  收藏  举报