#P3791. 普通数学题
普通数学题
Description
Given three integers , compute $\sum_{i=0}^n \sum_{j=0}^m d(i \operatorname{xor} j \operatorname{xor} x)$, where denotes bitwise XOR and denotes the number of divisors of .
Since the answer can be large, output the result modulo .
Input Format
One line with three integers .
Output Format
Output the answer modulo .
0 2 233
14
123 234 345
205761
Hint
For of the testdata, .
For of the testdata, .
For of the testdata, .
For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号