Advertisement
RaFiN_

438D - The Child and Sequence

Aug 16th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1.  
  2. 438D - The Child and Sequence
  3. for every mod operation we can mod until the highest number in the range becomes less than our mod value.it works because every time i mod the number becomes <=number/2 .so it will take log2(number) steps for every number to become 0...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement