Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

coder0687's blog

By coder0687, history, 2 weeks ago, In English

Given A, B, C, D. Find $$$\sum\limits_{i = A}^B \sum\limits_{j = C}^D i⊕j$$$

Constraints:

1 <= A <= B <= $$$10^9$$$

1 <= C <= D <= $$$10^9$$$

How to approach this, any suggestion will be helpful?

  • Vote: I like it
  • +8
  • Vote: I do not like it

»
2 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Use these

»
2 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Here is my idea —

Spoiler