Help needed. Atcoder Beginner Contest 166
Since the editorial is in japenese. I didn't understand the logic of Task E. Please help
https://atcoder.jp/contests/abc166/tasks/abc166_e
Full text and comments »