Skip to content

Commit 488f3f6

Browse files
committed
chore(gitignore): add .run to ignored files
1 parent c878d42 commit 488f3f6

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ gen
1919
ref*
2020
!ref*.cpp
2121
*.class
22+
.run

src/main/java/com/lzw/solutions/uva/p140/Main.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package com.lzw.solutions.uva.p140;
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.Arrays;
@@ -146,23 +144,8 @@ void close() throws IOException {
146144
}
147145

148146
public static void main(String[] args) throws Exception {
149-
FileInputStream inStream = null;
150-
PrintStream outStream = null;
151-
boolean isLocal = System.getProperty("os.name").equals("Mac OS X");
152-
if (isLocal) {
153-
inStream = new FileInputStream("1.in");
154-
// outStream = new PrintStream("1.out");
155-
System.setIn(inStream);
156-
// System.setOut(outStream);
157-
}
158-
159147
Main main = new Main();
160148
main.solve();
161149
main.close();
162-
163-
if (isLocal) {
164-
inStream.close();
165-
// outStream.close();
166-
}
167150
}
168151
}

0 commit comments

Comments
 (0)