Numbers Combination
시간 제한2초메모리 제한2048 MB
1 ≤ A_i ≤ i이고 합이 K인 수열의 개수를 998244353으로 나눈 나머지로 구한다.
문제
You are given two integers, and . Determine the number of sequences of integers that satisfy
- for , and
- .
Since the answer can be very large, calculate the answer modulo .
입력
Input consists of two integers (; ).
출력
Output in a line an integer representing the answer modulo .