No.1431 University of Tokyo Humanities Mathematics 2020 Problem 2, Modified
Problem Statement
There are $2N$ lines $x = a\ (a = 1, \ldots, N),\ y = b\ (b = 1, \ldots, N)$ on the coordinate plane.
In what follows, consider choosing $M$ distinct points from the $N^2$ points $(a, b)\ (a = 1, \ldots, N,\ b = 1, \ldots, N)$.
How many ways are there to choose $M$ points satisfying the following condition?
Among the $2N$ lines above, exactly $K$ lines contain none ($1$ point is not contained even once) of the chosen points.
Submit a program that outputs the number of such ways modulo $998244353$.
Input
$N\ M\ K$
- $1 \leqq N \leqq 3000$
- $1 \leqq M \leqq N^2$
- $0 \leqq K \leqq 2N - 2$
- $N, M, K$ are integers
Output
Output the answer, followed by a newline.
Sample
Sample 1
Input
3 2 3
Output
18
The condition is satisfied when choosing $2$ points whose $x, y$ coordinates are equal in at least one of the two.
Sample 2
Input
4 5 2
Output
1824
Sample 3
Input
4 5 0
Output
432
Sample 4
Input
3000 1000000 2021
Output
817273302
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
evima
mine691