
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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复