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