Please read the new rule regarding the restriction on the use of AI tools. ×

i am wasting whole day in this problem...

Revision en1, by CantLoseNow, 2022-11-15 05:53:08

can someone explain in a easier way how to solve this problem . I cant understand the editorial. specifically the part where it says "ai iterations in i-th step is equal to doing ai mod (n - i) iterations (0-based numbering). That is less than n". Please help.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English CantLoseNow 2022-11-15 05:53:08 349 Initial revision (published)