Reminder: in case of any technical issues, you can use the lightweight website,, ×

nthoang's blog

By nthoang, history, 8 months ago, In English,

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!

Read more »

  • Vote: I like it
  • +15
  • Vote: I do not like it