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 1330. Intervals

This is unfair
Posted by ucs6 15 Sep 2011 09:49
Same algorithm (sum[b]-sum[a-1]) got AC using C/C++, but got time exceeded using Java
Re: This is unfair
Posted by Sandro (USU) 15 Sep 2011 12:24
Try to use BufferedReader instead of Scanner ( http://acm.timus.ru/help.aspx?topic=java ).

Edited by author 15.09.2011 12:27
Re: This is unfair
Posted by Nafania 21 Oct 2011 16:17
I'm using StreamTokenizer and have TLE on 21 test :(((