File tree Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 33pid = 'X'
44
55problem (
6- time_limit = 5 .0 ,
6+ time_limit = 10 .0 ,
77 id = pid ,
88 title = pid + "Even2Primes" ,
99 #wiki_name="Your pukiwiki page name", # for wikify plugin
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ import java .io .PrintWriter ;
12import java .util .Arrays ;
23import java .util .Scanner ;
34
45public class Even2Primes {
56 private static final Scanner sc = new Scanner (System .in );
7+ private static final PrintWriter pw = new PrintWriter (System .out );
68 private static final int MAX_N = 5000000 ;
79 private static boolean isPrime [] = new boolean [MAX_N + 1 ];
810
@@ -33,7 +35,9 @@ public static void main(final String[] args) {
3335 answer ++;
3436 }
3537 }
36- System . out .println (answer );
38+ pw .println (answer );
3739 }
40+ sc .close ();
41+ pw .close ();
3842 }
3943}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments