Работоспособность Codeforces может быть ограничена с 18 июня, 22:00 (МСК) по 19 июня, 6:00 (МСК) в связи с проведением технических работ. Polygon будет работать в обычном режиме. ×

Problem understanding 359C Solution

Правка en1, от VeryGoodVeryGood, 2020-08-03 00:20:22

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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский VeryGoodVeryGood 2020-08-03 17:13:52 168
en1 Английский VeryGoodVeryGood 2020-08-03 00:20:22 419 Initial revision (published)