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
最新推荐文章于 2024-05-18 16:42:38 发布