#P7513. 「Stoi2031」兰亭序 加强版
「Stoi2031」兰亭序 加强版
Background
This problem is an enhanced version of "Stoi2031" Lantingxu.
Problem Description
Given and , for each , compute
$$\prod_{x_1=1}^{n}\prod_{x_2=1}^{n}\dots\prod_{x_t=1}^{n}\left( 1+e^{\frac{2\pi ix_1x_2\dots x_t}{n}} \right) \bmod{335544323}$$Output the bitwise XOR of all answers.
Here, holds for all . is the imaginary unit, satisfying .
Input Format
One line with three positive integers , where .
Output Format
One line with one non-negative integer representing the answer.
15 1 2
201012023
1 7 3
2
3 2 3
301162058
4 2 2
0
19260817 114514 13579
461194421
Hint
Constraints: For all testdata, , , .
Translated by ChatGPT 5