Help in a problem -
Hello CodeForces can any body help me as to how to solve this problem? link : Problem Link
Thanks!
CF Edu Round #165 Solution Discussion
Educational Round 165 Solution Discussion (with myself)