Atcoder Round 163 , Problem D

Revision en1, by alwaysGREEEN, 2020-04-20 11:04:38

I recently gave Atcoder Round 163 and could not solve this problem Can anyone explain the math behind this problem ?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English alwaysGREEEN 2020-04-20 11:04:38 200 Initial revision (published)