AtCoder Regular Contest 116
翻译中…
Problem Statement
翻译中…
Given are integers $N$ and $M$. How many sequences $A$ of $N$ integers satisfy the following conditions?
翻译中…
$0 \leq A_i \left(i = 1, 2, \ldots, N\right)$$\sum_{i = 1}^{N} A_i = M$$A_1$xor$A_2$xor$\cdots$xor$A_N = 0$("xor" denotes the bitwise XOR.)
翻译中…
Since the answer can be enormous, report it modulo $998244353$.
翻译中…
Constraints
翻译中…
- All values in input are integers.
$1 \leq N \leq 5000$$1 \leq M \leq 5000$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N M
翻译中…
Output
翻译中…
Print the answer.
翻译中…
样例
Input #1
5 20
Output #1
475
Some of the sequences $A$ satisfying the conditions follow:
- $A = \left(10, 0, 10, 0, 0\right)$
- $A = \left(1, 2, 3, 7, 7\right)$
Input #2
10 5
Output #2
0
Input #3
3141 2718
Output #3
371899128
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。