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 1846. GCD 2010

Oh,I got TLE
Posted by Accepted 20 Jun 2013 19:05
I have tests many tests,with which I have found my program's mistakes,and maybe this tests can help you:
4
+ 2
+ 309
- 2
+ 957
and the answer is:
2
1
309
3
but I got TLE at #18 now...
Re: Oh,I got TLE
Posted by Accepted 20 Jun 2013 19:12
Now I got TLE on #29
The mistake my program have is when I have done the discretization,I'll check a array whose length is n to refresh the order,then if we set o is the number after refreshing,we should set the ioop variables i=o rather than o=i...
Re: Oh,I got TLE
Posted by Accepted 20 Jun 2013 19:12
Now I got TLE on #29
The mistake my program have is that when I have done the discretization,I'll check a array whose length is n to refresh the order,then if we set o is the number after refreshing,we should set the loop variables i=o rather than o=i...