Problem understanding 359C Solution

Revision en2, by VeryGoodVeryGood, 2020-08-03 17:13:52

Hi CodeForces, I've been trying to solve this problem for a long time now but really don't get anything about it. I have read the editorial but I can't seem to understand what author means by saying cnt is multiple of x. How does that help solving the problem, could somebody provide an example of how it works or a better explanation. Thanks and sorry if this question is a bit dumb.

EDIT: I am very sorry for posting duplicate question (I have found a comment already discussing this problem) and not specifying the details. Will search next time.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English VeryGoodVeryGood 2020-08-03 17:13:52 168
en1 English VeryGoodVeryGood 2020-08-03 00:20:22 419 Initial revision (published)