QOJ.ac

QOJ

حد الوقت: 1 s حد الذاكرة: 512 MB مجموع النقاط: 100 قابلة للهجوم ✓

#4279. 鞍点

الإحصائيات

bobo 有一个大小为 $n \times m$ 的矩阵,其中的元素均为 $[1, k]$ 之间的整数。

请找出至少包含一个鞍点(saddle point)的矩阵数量,结果对 $(10^9 + 7)$ 取模。

注意:鞍点是指一个位置 $(i, j)$,它是第 $i$ 行的严格最大值,同时也是第 $j$ 列的严格最大值。

输入包含 3 个整数 $n, m, k$ ($1 \le n, m \le 500, 1 \le k \le 10$)。

输出一个整数,表示矩阵的数量。

样例

输入格式 1

2 2 2

输出格式 1

6

输入格式 2

500 500 2

输出格式 2

48326276

Editorials

IDTypeStatusTitlePosted ByLast UpdatedActions
#172EditorialOpen题解jiangly2025-12-12 23:48:37View

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.