Skip to content

Commit 37845f5

Browse files
committed
Based on the code changes, which remove local file input/output setup from multiple Codeforces solution files, the appropriate commit message would be:
refactor(codeforces): remove local file IO setup
1 parent e989bb3 commit 37845f5

File tree

299 files changed

+6
-3189
lines changed

Some content is hidden

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

299 files changed

+6
-3189
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ void close() throws IOException {
4545
}
4646

4747
public static void main(String[] args) throws Exception {
48-
FileInputStream inStream = null;
49-
PrintStream outStream = null;
50-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
51-
if (isLocal) {
52-
inStream = new FileInputStream("1.in");
53-
// outStream = new PrintStream("1.out");
54-
System.setIn(inStream);
55-
// System.setOut(outStream);
56-
}
5748

5849
Main main = new Main();
5950
main.solve();

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ void close() throws IOException {
4242
}
4343

4444
public static void main(String[] args) throws Exception {
45-
FileInputStream inStream = null;
46-
PrintStream outStream = null;
47-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
48-
if (isLocal) {
49-
inStream = new FileInputStream("1.in");
50-
// outStream = new PrintStream("1.out");
51-
System.setIn(inStream);
52-
// System.setOut(outStream);
53-
}
5445

5546
Main main = new Main();
5647
main.solve();

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.lzw.solutions.codeforces.p1552A;
22

3-
import java.io.FileInputStream;
4-
import java.io.PrintStream;
53
import java.util.Arrays;
64
import java.util.Scanner;
75

@@ -32,15 +30,6 @@ void work() {
3230
}
3331

3432
public static void main(String[] args) throws Exception {
35-
FileInputStream inStream = null;
36-
PrintStream outStream = null;
37-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
38-
if (isLocal) {
39-
inStream = new FileInputStream("1.in");
40-
// outStream = new PrintStream("1.out");
41-
System.setIn(inStream);
42-
// System.setOut(outStream);
43-
}
4433

4534
new Main().work();
4635
}

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package com.lzw.solutions.codeforces.p1582A;
22

33
import java.io.BufferedReader;
4-
import java.io.FileInputStream;
54
import java.io.IOException;
65
import java.io.InputStreamReader;
7-
import java.io.PrintStream;
86
import java.io.PrintWriter;
97
import java.util.Arrays;
108
import java.util.StringTokenizer;
@@ -101,15 +99,6 @@ void close() throws IOException {
10199
}
102100

103101
public static void main(String[] args) throws Exception {
104-
FileInputStream inStream = null;
105-
PrintStream outStream = null;
106-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
107-
if (isLocal) {
108-
inStream = new FileInputStream("1.in");
109-
// outStream = new PrintStream("1.out");
110-
System.setIn(inStream);
111-
// System.setOut(outStream);
112-
}
113102

114103
Main main = new Main();
115104
main.solve();

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package com.lzw.solutions.codeforces.p1582B;
22

33
import java.io.BufferedReader;
4-
import java.io.FileInputStream;
54
import java.io.IOException;
65
import java.io.InputStreamReader;
7-
import java.io.PrintStream;
86
import java.io.PrintWriter;
97
import java.util.Arrays;
108
import java.util.StringTokenizer;
@@ -95,15 +93,6 @@ void close() throws IOException {
9593
}
9694

9795
public static void main(String[] args) throws Exception {
98-
FileInputStream inStream = null;
99-
PrintStream outStream = null;
100-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
101-
if (isLocal) {
102-
inStream = new FileInputStream("1.in");
103-
// outStream = new PrintStream("1.out");
104-
System.setIn(inStream);
105-
// System.setOut(outStream);
106-
}
10796

10897
Main main = new Main();
10998
main.solve();

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package com.lzw.solutions.codeforces.p1582B;
22

33
import java.io.BufferedReader;
4-
import java.io.FileInputStream;
54
import java.io.IOException;
65
import java.io.InputStreamReader;
7-
import java.io.PrintStream;
86
import java.io.PrintWriter;
97
import java.util.ArrayList;
108
import java.util.StringTokenizer;
@@ -72,15 +70,6 @@ void close() throws IOException {
7270
}
7371

7472
public static void main(String[] args) throws Exception {
75-
FileInputStream inStream = null;
76-
PrintStream outStream = null;
77-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
78-
if (isLocal) {
79-
inStream = new FileInputStream("1.in");
80-
// outStream = new PrintStream("1.out");
81-
System.setIn(inStream);
82-
// System.setOut(outStream);
83-
}
8473

8574
Main2 main = new Main2();
8675
main.solve();

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package com.lzw.solutions.codeforces.p1582C;
22

33
import java.io.BufferedReader;
4-
import java.io.FileInputStream;
54
import java.io.IOException;
65
import java.io.InputStreamReader;
7-
import java.io.PrintStream;
86
import java.io.PrintWriter;
97

108
public class Main {
@@ -37,15 +35,6 @@ void close() throws IOException {
3735
}
3836

3937
public static void main(String[] args) throws Exception {
40-
FileInputStream inStream = null;
41-
PrintStream outStream = null;
42-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
43-
if (isLocal) {
44-
inStream = new FileInputStream("1.in");
45-
// outStream = new PrintStream("1.out");
46-
System.setIn(inStream);
47-
// System.setOut(outStream);
48-
}
4938

5039
Main main = new Main();
5140
main.solve();

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ void close() throws IOException {
4343
}
4444

4545
public static void main(String[] args) throws Exception {
46-
FileInputStream inStream = null;
47-
PrintStream outStream = null;
48-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
49-
if (isLocal) {
50-
inStream = new FileInputStream("1.in");
51-
// outStream = new PrintStream("1.out");
52-
System.setIn(inStream);
53-
// System.setOut(outStream);
54-
}
5546

5647
Main main = new Main();
5748
main.solve();

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package com.lzw.solutions.codeforces.p1609A;
22

3-
import java.io.FileInputStream;
43
import java.io.IOException;
5-
import java.io.PrintStream;
64
import java.io.PrintWriter;
75
import java.util.Arrays;
86
import java.util.Scanner;
@@ -57,15 +55,6 @@ void close() throws IOException {
5755
}
5856

5957
public static void main(String[] args) throws Exception {
60-
FileInputStream inStream = null;
61-
PrintStream outStream = null;
62-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
63-
if (isLocal) {
64-
inStream = new FileInputStream("1.in");
65-
// outStream = new PrintStream("1.out");
66-
System.setIn(inStream);
67-
// System.setOut(outStream);
68-
}
6958

7059
Main main = new Main();
7160
main.solve();

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package com.lzw.solutions.codeforces.p1609A;
22

3-
import java.io.FileInputStream;
43
import java.io.IOException;
5-
import java.io.PrintStream;
64
import java.io.PrintWriter;
75
import java.util.ArrayList;
86
import java.util.Collections;
@@ -100,15 +98,6 @@ void close() throws IOException {
10098
}
10199

102100
public static void main(String[] args) throws Exception {
103-
FileInputStream inStream = null;
104-
PrintStream outStream = null;
105-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
106-
if (isLocal) {
107-
inStream = new FileInputStream("1.in");
108-
// outStream = new PrintStream("1.out");
109-
System.setIn(inStream);
110-
// System.setOut(outStream);
111-
}
112101

113102
MainPlus main = new MainPlus();
114103
main.solve();

0 commit comments

Comments
 (0)