| The 2021 CCPC Weihai Onsite |
|---|
| Finished |
Zayin and Ziyin are playing a game with $$$n$$$ piles of stones, where the $$$i$$$-th pile has $$$a_i$$$ stones for each $$$1\le i\le n$$$. Zayin and Ziyin play in turn, with Zayin going first.
The one who is unable to remove stones in his turn lose.
Compute the number of strategies Zayin can make in his first turn in order to guarantee a win no matter what choices Ziyin makes.
Two strategies are considered to be different if they remove a different number of stones or they remove stones from different set of piles.
The first line contains the number of stone piles $$$n\ (1\le n\le 10^6)$$$.
The second line contains $$$n$$$ integers $$$a_1,a_2,\cdots,a_n\ (1\le a_i\le 10^9)$$$ - the number of stones in each pile.
The only line contains an integer, representing the number of strategies Zayin can make in his first turn modulo $$$998244353$$$.
9 9 9 8 2 4 4 3 5 3
2
| Name |
|---|


