| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 11 | 7 | 7 | 63.636% |
Appropriate temperature changes are essential for brewing delicious tea. Noli has been taught a recipe for delicious tea.
The recipe is represented by a sequence of non-negative integers $A = a_0, a_1, a_2, \dots, a_N, a_{N+1}$ of length $N+2$. She must change the temperature accordingly.
Raising the temperature is hard work. The cost of a recipe $A$ is defined by the following $f(A)$.
$f(A) = \sum_{i=0}^{N}{\max(0, a_{i+1} - a_i)}$
Noli has forgotten the recipe she was taught. All she remembers is that $a_0 = a_{N+1} = 0$ and that the cost was $K$.
How many possible recipes can be considered? Find the remainder of the number of possible recipes divided by 998244353ドル$.
Note that two recipes are different when the values of $a_i$ are different for any $i$ (0ドル \le i \le N+1$).
$N$ $K$
Output the remainder of the number of possible recipes divided by 998244353ドル$. Add a new line at the end of the output.
2 2
5
100 0
1
300 300
527212271
200000 200000
885086300
In Sample Input 1, There are five possible sequences $A$.