Need help with AtCoder Beginner Contest 186 Problem E

Revision en2, by parimal7, 2020-12-24 08:08:03

I tried reading the editorial but cannot understand the solution to this problem

The main point which I cannot understand is why should S % gcd(N,K) be equal to 0?

Tags #atcoder

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English parimal7 2020-12-24 08:08:03 16 Tiny change: 'erstand this [pro' -> 'erstand the solution to this [pro'
en1 English parimal7 2020-12-24 08:07:32 257 Initial revision (published)