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 1175. Strange Sequence

Can you tell me how to solve it fast?My search pro is slow,and...
Posted by Yu Yuanming 10 Apr 2005 18:08
Although it got AC, but I doubt whether it will give an correct answer on all test... :(

My algo is simply find a large num,assume it is on the cycle,and to find the periods...

I think it exist a maths way......or at least, have a good search method use something like hash and so on...