#P7481. 梦现时刻
梦现时刻
Description
Given , with guaranteed, define .
Find $\bigoplus_{a=1}^{m}\bigoplus_{b=1}^{m}(F(a,b) \bmod 998244353)$.
Here denotes the XOR operation.
Input Format
The first line contains two integers , with the same meaning as in the statement.
Output Format
Output one integer representing the answer.
3 3
7
Hint
【Constraints】
This problem uses bundled testdata.
For of the testdata, , , and is guaranteed.
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): no special constraints.
Translated by ChatGPT 5
京公网安备 11011102002149号