You are given two positive integers l and r,you shoud answer l⊕(l+1)⊕⊕r,where ⊕ denotes the bitwise XOR operation.In XOR operation we perform the comparison of two bits, being 1 if the two bits are different, and 0 if they are the same.For example:
You are given two positive integers l and r,you shoud answer l⊕(l+1)⊕⋯⊕r,where ⊕ denotes the bitwise XOR operation. In XOR operation we perform the comparison of two bits, being 1 if the two bits are different, and 0 if they are the same. For example:
(图片来源网络,侵删)