시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
15 초 | 512 MB | 68 | 38 | 17 | 73.913% |
Find the number of full binary trees (every vertex has 0 or 2 children) with n leaves such that for every vertex with two children, the number of leaves in its left subtree doesn’t exceed the number of leaves in its right subtree by more than k, and display it modulo 998 244 353.
The only line contains two integers n and k (2 ≤ n ≤ 106; 0 ≤ k ≤ 100).
Display the required number.
2 0
1
3 0
1
3 1
2
4 0
2
4 1
3
4 2
5
6 2
23
7 42
132
10 1
400
13 4
42003
239 17
385818773
50216 58
744498776
787788 78
394429402