|
|
back to boardPlease send solution wtih O(N) to me (I used back tracking and optimization to get 0.05s AC) here or piyawut@se-ed.net Thank you in advance :) I mean the problem 1032 , Find a multiple > Thank you in advance :) Re: Use Dirichlet method to solve !!! > > 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. |
|
|