Skip to content

Commit e989bb3

Browse files
committed
refactor(codeforces): remove redundant stream closing blocks
1 parent 247decd commit e989bb3

File tree

491 files changed

+4
-3735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

491 files changed

+4
-3735
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,5 @@ public static void main(String[] args) throws Exception {
5858
Main main = new Main();
5959
main.solve();
6060
main.close();
61-
62-
if (isLocal) {
63-
inStream.close();
64-
// outStream.close();
65-
}
6661
}
6762
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,5 @@ public static void main(String[] args) throws Exception {
5555
Main main = new Main();
5656
main.solve();
5757
main.close();
58-
59-
if (isLocal) {
60-
inStream.close();
61-
// outStream.close();
62-
}
6358
}
6459
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,5 @@ public static void main(String[] args) throws Exception {
4343
}
4444

4545
new Main().work();
46-
47-
if (isLocal) {
48-
inStream.close();
49-
// outStream.close();
50-
}
5146
}
5247
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,5 @@ public static void main(String[] args) throws Exception {
114114
Main main = new Main();
115115
main.solve();
116116
main.close();
117-
118-
if (isLocal) {
119-
inStream.close();
120-
// outStream.close();
121-
}
122117
}
123118
}

src/main/java/com/lzw/solutions/codeforces/p1582B/Data.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,5 @@ public static void main(String[] args) throws Exception {
4949
Data main = new Data();
5050
main.solve();
5151
main.close();
52-
53-
if (isLocal) {
54-
inStream.close();
55-
// outStream.close();
56-
}
5752
}
5853
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,5 @@ public static void main(String[] args) throws Exception {
108108
Main main = new Main();
109109
main.solve();
110110
main.close();
111-
112-
if (isLocal) {
113-
inStream.close();
114-
// outStream.close();
115-
}
116111
}
117112
}

src/main/java/com/lzw/solutions/codeforces/p1582B/Main2.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,5 @@ public static void main(String[] args) throws Exception {
8585
Main2 main = new Main2();
8686
main.solve();
8787
main.close();
88-
89-
if (isLocal) {
90-
inStream.close();
91-
// outStream.close();
92-
}
9388
}
9489
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,5 @@ public static void main(String[] args) throws Exception {
5050
Main main = new Main();
5151
main.solve();
5252
main.close();
53-
54-
if (isLocal) {
55-
inStream.close();
56-
// outStream.close();
57-
}
5853
}
5954
}

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,5 @@ public static void main(String[] args) throws Exception {
5656
Main main = new Main();
5757
main.solve();
5858
main.close();
59-
60-
if (isLocal) {
61-
inStream.close();
62-
// outStream.close();
63-
}
6459
}
6560
}

src/main/java/com/lzw/solutions/codeforces/p1609A/Gen.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,5 @@ public static void main(String[] args) throws Exception {
5656
Gen main = new Gen();
5757
main.solve();
5858
main.close();
59-
60-
if (isLocal) {
61-
inStream.close();
62-
// outStream.close();
63-
}
6459
}
6560
}

0 commit comments

Comments
 (0)