Help needed
Can anyone help me with this problem? I tried to think about it for 2 straight days but cannot up with a solution. Also the editorial doesn't make sense.
Atcoder ABC #351 Short Solution Discussion