|
|
back to boardJava is so slow Hi, I've solved this problem in C++ but when trying it in Java I can't avoid TL on test11. What should I do in order ot improve my IO operations. I use BufferedReader and PrintWriter. I can share my code if necessary Re: Java is so slow Posted by Sni 13 Nov 2007 16:26 you can call print only one time; and don`t use many concatenations Re: Java is so slow StreamTokenizer in = new StreamTokenizer(new BufferedReader( new InputStreamReader(System.in))); PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); it will be enough. Good luck~ Hi, I've solved this problem in C++ but when trying it in Java I can't avoid TL on test11. What should I do in order ot improve my IO operations. I use BufferedReader and PrintWriter. I can share my code if necessary |
|
|