I Feel So Sigma
A quick question is a good question. Calculate the following sum:
Input
The first line consists of two integers , representing the parameters for the sum. The following conditions hold:
Output
Output the value of the sum.
Note: Since the answer may be very large, return it modulus .
Example
Input
4 6
Output
12
The sum of these XORs is , so
.
Comments
I think the l, r range is a bit too large LMAO! 10^15 is insane. I'm assuming it's supposed to be 10^5? Edit: nvm it's hard for a reason.