Need help for an AtCoder problem!

Revision en1, by nthoang, 2019-02-20 11:31:49

Hi Codeforces,

Recently I am solving this problem from AtCoder Regular Contest 061:

However, I do not come up with any idea. I have tried to look at others' submissions since this contest does not have an English editorial, but I still cannot figure out what the mathematical formulas written in those codes mean.

Hope you guys can help me with the solution for this problem. Many thanks!


  Rev. Lang. By When Δ Comment
en1 English nthoang 2019-02-20 11:31:49 480 Initial revision (published)