https://codeforces.net/contest/1580/submission/130368106↵
↵
The main idea is to choose the most optimal one number in every step.↵
↵
![QAQ](/predownloaded/ac/34/ac3459fbf10ba44abb93a83a887cf7a3fe11f818.jpg)↵
↵
The main idea is to choose the most optimal one number in every step.↵
↵
![QAQ](/predownloaded/ac/34/ac3459fbf10ba44abb93a83a887cf7a3fe11f818.jpg)↵