Here is the link https://mirror.codeforces.com/contest/1000/problem/C I saw the editorial but cannot understand please explain the solution of this question.
Here is the link https://mirror.codeforces.com/contest/1000/problem/C I saw the editorial but cannot understand please explain the solution of this question.