QOJ.ac

QOJ

Time Limit: 5 s Memory Limit: 1024 MB Total points: 100

#7974. 染色

統計

给定一个 $ N \times M $ 的网格图,每个格子初始为白色,现在需要将 $ K $ 个格子染成黑色,使得每行每列的黑格子数均为奇数,求方案数。

输入格式

一行三个整数 $ N,M,K $。

输出格式

输出一行一个整数,表示方案数 $ \bmod 998244353 $ 的结果。

样例一

input
3 3 5
output
9

样例二

input
500 1000 1000
output
928165755

数据范围

测试点编号$ N,M $$ K $
$ 1,2 $$ N \times M \le 20 $
$ 3,4 $$ N \times M \le 100 $
$ 5,6 $$ N \times M \le 5000 $$ K \le 100 $
$ 7,8 $$ N \times M \le 5000 $
$ 9,10,11 $$ N \times M \le 10^5 $
$ 12,13 $$ N \times M \le 5 \times 10^5 $$ K \in \{N,M\} $
$ 14,15 $$ N \times M \le 5 \times 10^5 $$ K \le 1000 $
$ 16,17,18,19,20 $$ N \times M \le 5 \times 10^5 $

对于所有数据,保证 $ N,M $ 为正整数,$ 0 \le K \le N \times M $,对于所有编号为偶数的点,有 $ N=M $。

About Issues

We understand that our problem archive is not perfect. If you find any issues with the problem, including the statement, scoring configuration, time/memory limits, test cases, etc.

You may use this form to submit an issue regarding the problem. A problem moderator will review your issue and proceed it properly.

STOP! Before you submit an issue, please READ the following guidelines:

  1. This is not a place to publish a discussion, editorial, or requests to debug your code. Your issue will only be visible by you and problem moderators. Other users will not be able to view or reply your issues.
  2. Do not submit duplicated issues. If you have already submitted one, please wait for an moderator to review it. Submitting multiple issues will not speed up the review process and might cause your account to be banned.
  3. Issues must be filed in English or Chinese only.
  4. Be sure your issue is related to this problem. If you need to submit an issue regarding another problem, contest, category, etc., you should submit it to the corresponding page.

Active Issues 0

No issues in this category.

Closed/Resolved Issues 0

No issues in this category.