-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeam.java
More file actions
27 lines (19 loc) · 707 Bytes
/
Team.java
File metadata and controls
27 lines (19 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.util.Scanner;
public class Team {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int problemsToImplement = 0;
for (int i = 0; i < n; i++) {
int petyaSure = scanner.nextInt();
int vasyaSure = scanner.nextInt();
int tonyaSure = scanner.nextInt();
int sureCount = petyaSure + vasyaSure + tonyaSure;
if (sureCount >= 2) {
problemsToImplement++;
}
}
System.out.println(problemsToImplement);
scanner.close();
}
}