| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 62 | 53 | 40 | 88.889% |
You are given integers $N$ and $K$. For a positive integer $k,ドル $f(k)$ is defined as follows.
Answer the remainder of $\sum_{k=1}^{K}{f(k)}$ divided by 998244353ドル$.
For each input, solve $T$ test cases.
Note that $\binom{A}{B}$ represents "the number of ways to select $B$ distinct items from $A$ items" (i.e., the binomial coefficient).
$T$
$\text{case}_1$
$\vdots$
$\text{case}_T$
Each test case is given in the following format.
$N$ $K$
Output the remainder of $\sum_{k=1}^{K}{f(k)}$ divided by 998244353ドル$ for each test case.
3 3 3 0 1 31415 92653
99 1 276482222