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 1347. Blog

timelimits. very interesting. admins, please pay attention
Posted by artie 18 Feb 2008 19:04
Is it okay when my code gets accepted (0.35 seconds) and same code after few minutes gets TL.
I write programs in Java. And it was very hard for me to tune up my program to run it in time, because in this problem we have to read and write large amount of data. Usually jury increases timelimits for Java in such situations.
And most surprising thing:
why
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));
always gets TL
and
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
gets AC (sometimes :))))