Skip to content

Commit f4fd831

Browse files
committed
fix(codeforces/2108F): Correct Main.java issues
1 parent 8113091 commit f4fd831

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

codeforces/2108F/src/Main.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import java.io.InputStreamReader;
55
import java.io.PrintStream;
66
import java.io.PrintWriter;
7+
import java.util.StringTokenizer;
78

89
public class Main {
910

@@ -16,6 +17,15 @@ public class Main {
1617
}
1718

1819
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+
}
1929
}
2030

2131
void close() throws IOException {
@@ -42,10 +52,5 @@ public static void main(String[] args) throws Exception {
4252
Main main = new Main();
4353
main.solve();
4454
main.close();
45-
46-
if (isLocal) {
47-
inStream.close();
48-
// outStream.close();
49-
}
5055
}
5156
}

0 commit comments

Comments
 (0)