問題一覧 > 通常問題

No.1431 University of Tokyo Humanities Mathematics 2020 Problem 2, Modified

レベル : / AI推定難易度 : 2100 / 実行時間制限 : 1ケース 5.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (解説公開後に AC するまで非表示) / 解いたユーザー数 26
作問者 : evima / テスター : mine691
お気に入りにしたユーザー ProblemId : 5995 / 自分の提出
問題文最終更新日: 2021-03-14 12:07:47
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
ホワイトデーコンテスト2021 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。