Atcoder Problem C (SWITCH)

I was doing this problem from Atcoder : C - Switches
Can someone please explain the solution?
I have seen the editorial but couldn’t understand it.

Solution link: Submission #15518338 - AtCoder Beginner Contest 128 (Python)
Solution link: Submission #5640467 - AtCoder Beginner Contest 128 (C++)

Atcoder editorials are bad.

Yeah

This guy just translated it from japanese to english. :sweat_smile: :sweat_smile: :sweat_smile: (I think with the help of google translate.)

1 Like