File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
src/main/java/com/lzw/solutions/uva/p140 Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change 1919ref *
2020! ref * .cpp
2121* .class
22+ .run
Original file line number Diff line number Diff line change 11package com .lzw .solutions .uva .p140 ;
22
33import java .io .BufferedReader ;
4- import java .io .FileInputStream ;
54import java .io .IOException ;
65import java .io .InputStreamReader ;
7- import java .io .PrintStream ;
86import java .io .PrintWriter ;
97import java .util .ArrayList ;
108import 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}
You can’t perform that action at this time.
0 commit comments