help in bit manipulation question!

prob : http://codeforces.com/contest/913/problem/E

I had read the editorial already but didn’t understand it. so, if possible please explain this problem a little bit more !

That Q…aaaaah. It was a repeated question, someone gave link to original question in announcement page. Trying checking the other editorial in case that helps. I couldnt solve it then (and cant even solve it now lol.)

i have found this(F prob) : http://codeforces.com/gym/101177/attachments/download/4879/20162017-acmicpc-south-pacific-regional-contest-sppc-16-en.pdf

but there is no editorial for this. If there is any other link please tell me. thanks :slight_smile:

if possible please help me!