File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 4
4
import java .io .InputStreamReader ;
5
5
import java .io .PrintStream ;
6
6
import java .io .PrintWriter ;
7
+ import java .util .StringTokenizer ;
7
8
8
9
public class Main {
9
10
@@ -16,6 +17,15 @@ public class Main {
16
17
}
17
18
18
19
void solve () throws IOException {
20
+ int t = Integer .parseInt (in .readLine ());
21
+ while (t -- > 0 ) {
22
+ int n = Integer .parseInt (in .readLine ());
23
+ int a [] = new int [n ];
24
+ StringTokenizer st = new StringTokenizer (in .readLine ());
25
+ for (int i = 0 ; i < n ; i ++) {
26
+ a [i ] = Integer .parseInt (st .nextToken ());
27
+ }
28
+ }
19
29
}
20
30
21
31
void close () throws IOException {
@@ -42,10 +52,5 @@ public static void main(String[] args) throws Exception {
42
52
Main main = new Main ();
43
53
main .solve ();
44
54
main .close ();
45
-
46
- if (isLocal ) {
47
- inStream .close ();
48
- // outStream.close();
49
- }
50
55
}
51
56
}
You can’t perform that action at this time.
0 commit comments