Can anyone explain the editorial for H. Bots problem from Codeforces
Problem: Bots
The solution explanation/discussion is in the comments. I could not understand the editorial. Please help me! Thanks!