codeforces round 453(div 2)

can anybody help me in explaining the approach to the problem of codeforces
problem link:

Please use a better title for your question.
Also the editorials for the round have been uploaded, so you can check that out.


could anyone explain Problem C of same contest?? I did’nt got a word from editorial Link