Atcoder: ARC 61 Problem F
Can anyone please explain the analysis to problem F? Unfortunately this time the editorial is in japanese.