codeforces round 453(div 2)

can anybody help me in explaining the approach to the problem of codeforces
problem link:
http://codeforces.com/contest/902/problem/D

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

2 Likes

could anyone explain Problem C of same contest?? I did’nt got a word from editorial Link http://codeforces.com/contest/902/problem/C