problem link- http://www.spoj.com/problems/BADXOR/
i am not able to think of any solution other then brute force ,can anyone explain me how to proceed or can anyone give hint to the problem .also any suggestion on such type of problem or some links of similiar based problem will also be helpful