Universal Cup Judging System

Universal Cup

Límite de tiempo: 6.0 s Límite de memoria: 512 MB Puntuación total: 100 Hackeable ✓
Estadísticas

有一個 $N \times M$ 的棋盤。

你需要在這個棋盤上放置 $K$ 個互不相同的「車」。放置方案必須滿足以下所有條件:

  1. 每個格子最多包含一個車。
  2. 棋盤的每一列(row)至少包含一個車。
  3. 棋盤的每一行(column)至少包含一個車。

請計算合法放置方案的總數。由於答案可能非常大,你只需要輸出結果對 $998244353$ 取模的值。

輸入格式

輸入只包含一行。

這一行依序包含三個整數 $N, M, K$ ($1 \le N, M, K \le 10^5$),分別代表棋盤的列數、行數,以及要放置的車的數量。

輸出格式

輸出一行,包含一個整數,即合法放置方案的數量對 $998244353$ 取模的結果。

範例

輸入範例 1

2 2 3

輸出範例 1

24

輸入範例 2

5 3 4

輸出範例 2

0

輸入範例 3

353 442 899

輸出範例 3

623104742

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.