Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Блог пользователя Partha_

Автор Partha_, история, 6 лет назад, По-английски

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

  • Проголосовать: нравится
  • -36
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +21 Проголосовать: не нравится

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