#abc288h. [abc288_h]A Nameless Counting Problem

[abc288_h]A Nameless Counting Problem

给定 NNMMXX ,询问有多少个长度为 NN 的非负整数序列满足以下条件:

0A1A2...ANM0\le A_1\le A_2\le ...\le A_N\le M

A1A2...AN=XA_1\oplus A_2\oplus...\oplus A_N=X

其中 \oplus 是异或操作,答案对 998244353998244353 取模。( 1N2001\le N\le 2000M<2300\le M\lt 2^{30}0X<2300\le X\lt 2^{30} )