Skip to content

Commit e353c8e

Browse files
committed
ps
1 parent 59b0109 commit e353c8e

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎TIL/J13300_1.java‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package TIL;
2+
3+
import java.io.*;
4+
5+
6+
public class J13300_1 {
7+
public static void main(String[] args) throws IOException {
8+
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
9+
10+
String[] input = buffer.readLine().split(" ");
11+
12+
int N = Integer.parseInt(input[0]);
13+
int K = Integer.parseInt(input[1]);
14+
15+
int[][] arr = new int[2][7];
16+
17+
for(int i = 1 ; i<N+1; i++){
18+
input = buffer.readLine().split(" ");
19+
int s = Integer.parseInt(input[0]);
20+
int g = Integer.parseInt(input[1]);
21+
22+
arr[s][g]++;
23+
}
24+
int cnt = 0;
25+
int room = 0;
26+
for(int i = 1; i <= N; i++){
27+
cnt += arr[0][i];
28+
}
29+
System.out.println(room);
30+
}
31+
}

0 commit comments

Comments
 (0)