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 1491. Unreal Story

The Correct Java Solution Got TLE 17!
Posted by Alexander Sokolov [MAI] 20 Oct 2006 23:12
[code deleted]

Edited by author 20.10.2006 23:12

Edited by moderator 01.12.2019 21:13
Re: The Correct Java Solution Got TLE 17!
Posted by Alexander Sokolov [MAI] 20 Oct 2006 23:14
Algo is O(2n)
Re: The Correct Java Solution Got TLE 17!
Posted by Alexander Sokolov [MAI] 20 Oct 2006 23:16
The same algo on Pascal got AC in 0.156 sec
Re: The Correct Java Solution Got TLE 17!
Posted by Vladimir Yakovlev (USU) 21 Oct 2006 16:44
Do not use Scanner for problems with big input. Read http://acm.timus.ru/java.aspx for more details.
Re: Thank you!!!
Posted by Quramboyev Akbar Shox! 26 Aug 2010 15:50
Thank you Alexander, my algorithm AC 0.484