Numbers Combination
Time limit2sMemory limit2048 MB
Count integer sequences with 1 <= A_i <= i and sum K, modulo 998244353, for N up to 100000 and K up to 200000.
- Level
Medium7 of 10
- Topics
- Combinatorics, Divide and conquer, Math
- Solved
- No attempts yet
Problem
You are given two integers and . Count the integer sequences that satisfy the following conditions.
- For every , .
- .
Since the answer can be very large, print it modulo .
Input
Two integers and are given on one line, where and .
Output
Print the answer modulo on one line.