我是靠谱客的博主 心灵美画笔,这篇文章主要介绍CodeForces-231A,现在分享给大家,希望可以做个参考。

在这里插入图片描述

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
          int n = sc.nextInt();
          int sum = 0;
            for (int i = 0; i < n; i++) {
                int cnt = 0;
                int a = sc.nextInt();
                int b = sc.nextInt();
                int c = sc.nextInt();
                if(a == 1) cnt++;
                if(b == 1) cnt++;
                if(c == 1) cnt++;
                if(cnt>=2) sum++;
            }
            System.out.println(sum);
        }
    }
}

最后

以上就是心灵美画笔最近收集整理的关于CodeForces-231A的全部内容,更多相关CodeForces-231A内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(129)

评论列表共有 0 条评论

立即
投稿
返回
顶部