GYM Problem
Can someone suggest an appraoch to solve problem F of this link !! http://codeforces.com/gym/100610
Round 1975 Div 1 + Div 2 Solution Discussion (with Jan)