Sum of Product of Binomial Coefficients
시간 제한2초메모리 제한1024 MB
각 테스트 케이스에서 f(1)부터 f(K)까지의 중첩 이항계수 곱의 합을 구해 998244353으로 나눈 나머지를 출력한다.
문제
You are given integers and . For a positive integer , is defined as follows.
- The Sum of for all integer sequences that satisfy the condition .
Answer the remainder of divided by .
For each input, solve test cases.
Note that represents "the number of ways to select distinct items from items" (i.e., the binomial coefficient).
입력
Each test case is given in the following format.
출력
Output the remainder of divided by for each test case.
제한
- All test cases consist of integers.
- The sum of in one test case does not exceed .