File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ class ContestPrinter extends java.io.PrintWriter{
22 public ContestPrinter (java .io .PrintStream stream ){
33 super (stream );
44 }
5+ public ContestPrinter (java .io .File file ) throws java .io .FileNotFoundException {
6+ super (new java .io .PrintStream (file ));
7+ }
58 public ContestPrinter (){
69 super (System .out );
710 }
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ class ContestScanner {
1111 public ContestScanner (java .io .InputStream in ){
1212 this .in = in ;
1313 }
14+ public ContestScanner (java .io .File file ) throws java .io .FileNotFoundException {
15+ this (new java .io .BufferedInputStream (new java .io .FileInputStream (file )));
16+ }
1417 public ContestScanner (){
1518 this (System .in );
1619 }
You can’t perform that action at this time.
0 commit comments