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

XOR

Правка en1, от Partha_, 2018-03-05 23:51:46

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Partha_ 2018-03-05 23:51:46 287 Initial revision (published)