help in bit manipulation question!

prob :

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) :

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

if possible please help me!