Help in #281 Div 2 Problem D
Can someone please help me on how to arrive at the conclusion stated in the editorial?
Link to the problem
Link to the editorial
Thanks!
CF Edu Round #165 Solution Discussion
Educational Round 165 Solution Discussion (with myself)