Universal Cup Judging System

Universal Cup

実行時間制限: 6.0 s メモリ制限: 512 MB 満点: 100 ハック可能 ✓
統計

Có một bàn cờ kích thước $N \times M$.

Bạn cần đặt $K$ quân xe phân biệt lên bàn cờ này. Cách đặt phải thỏa mãn tất cả các điều kiện sau:

  1. Mỗi ô chứa nhiều nhất một quân xe.
  2. Mỗi hàng của bàn cờ chứa ít nhất một quân xe.
  3. Mỗi cột của bàn cờ chứa ít nhất một quân xe.

Hãy tìm tổng số cách đặt hợp lệ. Vì đáp án có thể rất lớn, bạn chỉ cần in ra kết quả theo modulo $998244353$.

Dữ liệu vào

Dữ liệu vào chỉ chứa một dòng duy nhất.

Dòng này chứa ba số nguyên $N, M, K$ theo thứ tự ($1 \le N, M, K \le 10^5$), lần lượt biểu thị số hàng và số cột của bàn cờ, cùng với số lượng quân xe cần đặt.

Dữ liệu ra

In ra một dòng chứa một số nguyên là số cách đặt hợp lệ theo modulo $998244353$.

Ví dụ

Dữ liệu vào 1

2 2 3

Dữ liệu ra 1

24

Dữ liệu vào 2

5 3 4

Dữ liệu ra 2

0

Dữ liệu vào 3

353 442 899

Dữ liệu ra 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.