Universal Cup Judging System

Universal Cup

Limite de temps : 6.0 s Limite de mémoire : 512 MB Points totaux : 100 Hackable ✓
Statistiques

توجد رقعة شطرنج أبعادها $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.