D - Number of Multisets
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Score : 600 points
Problem Statement
You are given two positive integers N and K. How many multisets of rational numbers satisfy all of the following conditions?
- The multiset has exactly N elements and the sum of them is equal to K.
- Each element of the multiset is one of 1,21,41,81,…. In other words, each element can be represented as 2i1 (i=0,1,…).
The answer may be large, so print it modulo 998244353.
Constraints
- 1≤K≤N≤3000
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
N K
Output
Print the number of multisets of rational numbers that satisfy all of the given conditions modulo 998244353.
Sample Input 1
4 2
Sample Output 1
2
The following two multisets satisfy all of the given conditions:
- 1,21,41,41
- 21,21,21,21
Sample Input 2
2525 425
Sample Output 2
687232272
排位赛1
- Status
- Done
- Rule
- IOI
- Problem
- 8
- Start at
- 2023-7-11 8:00
- End at
- 2023-7-11 12:00
- Duration
- 4 hour(s)
- Host
- Partic.
- 21