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 1032. Find a Multiple

Please send solution wtih O(N) to me (I used back tracking and optimization to get 0.05s AC) here or piyawut@se-ed.net
Posted by MadPsyentist/Sam 3 Feb 2002 13:47
Thank you in advance :)
I mean the problem 1032 , Find a multiple
Posted by MadPsyentist/Sam 3 Feb 2002 13:48
> Thank you in advance :)
Re: Use Dirichlet method to solve !!!
Posted by Tran Nam Trung (trungduck@yahoo.com) 3 Feb 2002 15:49
> > Thank you in advance :)
B[i] := a[i] mod n, so there always exist i that b[i] = 0 or exist i
and j that b[i] = b[j] --> segment from i->j is the answer.