Help needed in Division by Two with Something Atcoder problem
Can anyone explain me how to solve this problem .I read its editorial several times but still couldn't understand it. I checked it discuss section in codeforces, but nothing more has been said about this problem. Problem Editorial
Atcoder ABC #351 Short Solution Discussion