QOJ.ac

QOJ

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

#3700. 矩形

Statistics

frog 有一张被划分为 $n$ 行 $m$ 列的纸。 今天,她想画一个周长不超过 $k$ 的矩形。

当 $n = m = 2, k = 6$ 时,有 $8$ 种(共 $9$ 种中的)画法

求画法的总数。

输入格式

输入包含多组测试数据。对于每组测试数据:

第一行包含 $3$ 个整数 $n, m, k$ ($1 \leq n, m \leq 5 \cdot 10^4, 0 \leq k \leq 10^9$)。

输出格式

对于每组测试数据,输出 $1$ 个整数,表示画法的总数。

样例

样例输入 1

2 2 6
1 1 0
50000 50000 1000000000

样例输出 1

8
0
1562562500625000000

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.