https://mirror.codeforces.com/contest/1580/submission/130368106
The main idea is to choose the most optimal one number in every step.
UPD: To avoid unnecessary inconvenience, if you want to see a cute comic, click here , and please try to solve my problem.
Auto comment: topic has been updated by 5002ryx (previous revision, new revision, compare).
ffs, I can't even browse CF safely in public
I was sitting in front of my dad and open this blog. Now I dont know how to explain this to him, that what I was doing :/
So basically.. It was a trap
Auto comment: topic has been updated by 5002ryx (previous revision, new revision, compare).
Is
codeforces.ml
a trusted domain?