atcoder#ARC116D. [ARC116D] I Wanna Win The Game
[ARC116D] I Wanna Win The Game
Score : points
Problem Statement
Given are integers and . How many sequences of integers satisfy the following conditions?
- xor xor xor ("xor" denotes the bitwise XOR.)
Since the answer can be enormous, report it modulo .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
5 20
475
Some of the sequences satisfying the conditions follow:
10 5
0
3141 2718
371899128