ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1100. Final Standings

Java is so slow
Posted by Index Tree 14 Feb 2007 21:04
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
Posted by SubmitRush 27 Sep 2009 21:52
        StreamTokenizer in = new StreamTokenizer(new BufferedReader(
                new InputStreamReader(System.in)));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));

it will be enough.
Good luck~
Index Tree wrote 14 February 2007 21:04
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