Partha_'s blog

By Partha_, history, 7 years ago, In English

I m given a sequence A1, A2, ..., AN and Q queries. In each query, you are given two parameters L and R; I have to find the smallest integer X such that 0 ≤ X < 231 and the value of (AL xor X) + (AL+1 xor X) + ... + (AR xor X) is maximum possible. please give me a hint to solve this

  • Vote: I like it
  • -36
  • Vote: I do not like it

| Write comment?
»
7 years ago, # |
  Vote: I like it +21 Vote: I do not like it

Bro,this question is from March'18 long challenge of codechef U can't ask for any hint or solution of any live contests Just try your best till the end of contest