Skip to content

Commit b57909f

Browse files
committed
feat(p2190B1): implement basic input reading and echo logic
1 parent 40d36ef commit b57909f

File tree

2 files changed

+10
-2
lines changed
  • src/main
    • java/com/lzw/solutions/codeforces/p2190B1
    • resources/codeforces/p2190B1

2 files changed

+10
-2
lines changed

src/main/java/com/lzw/solutions/codeforces/p2190B1/Main.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ private void close() {
2828

2929
private void solve() throws IOException {
3030
int t = Integer.parseInt(in.readLine());
31-
while (t > 0) {
32-
t--;
31+
while (t-- > 0) {
3332
int n = Integer.parseInt(in.readLine());
33+
String s = in.readLine();
34+
out.println(s);
3435
}
3536
}
3637
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
3
2+
2
3+
()
4+
8
5+
(()(()))
6+
6
7+
(())()

0 commit comments

Comments
 (0)