Universal Cup Judging System

Universal Cup

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

נתון לוח שחמט בגודל $N \times M$.

עליך להציב $K$ צריחים שונים על לוח השחמט הזה. ההצבה חייבת לקיים את כל התנאים הבאים:

  1. כל משבצת מכילה לכל היותר צריח אחד.
  2. כל שורה של לוח השחמט מכילה לפחות צריח אחד.
  3. כל עמודה של לוח השחמט מכילה לפחות צריח אחד.

מצא את המספר הכולל של הצבות חוקיות. מאחר שהתשובה עלולה להיות גדולה מאוד, עליך להדפיס רק את התוצאה מודולו $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.