-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolution.java
More file actions
33 lines (23 loc) · 945 Bytes
/
Solution.java
File metadata and controls
33 lines (23 loc) · 945 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
28
29
30
31
32
33
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
System.setIn(new FileInputStream("input.txt"));
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // 빠른 읽기
StringTokenizer st = null;
StringBuilder sb = new StringBuilder();
int t = Integer.parseInt(br.readLine());
for (int tc=1; tc<=t; tc++) {
st = new StringTokenizer(br.readLine());
int n = Integer.parseInt(st.nextToken());
int p = Integer.parseInt(st.nextToken());
int[] study = new int[n];
boolean[] connect = new boolean[n];
st = new StringTokenizer(br.readLine());
for (int i=0; i<n; i++) {
study[i] = Integer.parseInt(st.nextToken());
}
System.out.println(Arrays.toString(study));
}
}
}