合法网格
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
有一个 的网格,网格上的数字都在 之间且两两不同。
有个限制,直观描述是位置左、上的格子必须比右、下的格子小,精确地说: 必须成立,如果不等式中的两个位置都在网格内的话。
你想知道对于一个 ,有多少个格子的值可以是 (即存在一种网格,使得它的值是 )。
输入格式
第一行三个整数 。
接下来 行,每行一个整数 。
输出格式
行,每行一个整数表示答案。
样例输入
2 3 6
1
2
3
4
5
6
样例输出
1
2
3
3
2
1
数据范围
对于的数据,
对于另外的数据,
对于另外的数据,
对于所有数据,$1\leq n,m\leq 5000,0\leq q \leq 2\cdot 10^5,1\leq k\leq nm$
10.24
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2023-10-24 10:10
- End at
- 2023-10-24 13:40
- Duration
- 3.5 hour(s)
- Host
- Partic.
- 1