Problem Statement
You are given positive integers $N$, $M$, $K$, and a sequence of non-negative integers: $A=(A_1,A_2,\ldots,A_N)$.
For a non-empty non-negative integer sequence $B=(B_1,B_2,\ldots,B_{|B|})$, we define its score as follows.
- If the length of
$B$is a multiple of$M$:$(B_1 \oplus B_2 \oplus \dots \oplus B_{|B|})^K$ - Otherwise:
$0$
Here, $\oplus$ represents the bitwise XOR.
Find the sum, modulo $998244353$, of the scores of the $2^N-1$ non-empty subsequences of $A$.
What is bitwise XOR? The bitwise XOR of non-negative integers $A$ and $B$, denoted as $A \oplus B$, is defined as follows: In the binary representation of $A \oplus B$, the digit at position $2^k$ ($k \geq 0$) is $1$ if exactly one of $A$ and $B$ has a $1$ in that position in their binary representations, and $0$ otherwise. For example, $3 \oplus 5 = 6$ (in binary: $011 \oplus 101 = 110$). In general, the XOR of $k$ integers $p_1, \dots, p_k$ is defined as $(\cdots ((p_1 \oplus p_2) \oplus p_3) \oplus \cdots \oplus p_k)$, and it can be proved that this is independent of the order of $p_1, \dots, p_k$.
Constraints
$1 \leq N,K \leq 2 \times 10^5$$1 \leq M \leq 100$$0 \leq A_i < 2^{20}$- All input values are integers.
Input
The input is given from Standard Input in the following format:
N M K
A_1 A_2 \ldots A_N
Output
Print the answer.
样例
3 2 2
1 2 3
14
10 5 3
100 100 100 100 100 100 100 100 100 100
252000000
16 4 100
7053 3876 3178 8422 7802 5998 2334 6757 6889 6637 7365 9495 7848 9026 7312 6558
432440016
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。