QOJ.ac

QOJ

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

#6855. 断言

Statistics

Alice 断言,如果你将 $m$ 个物品分成 $n$ 个组,则必然会有一个组的物品数量大于或等于 $d$。

由于 Alice 过度自信,她并没有意识到她的一些断言实际上是不正确的。你的任务是判断 Alice 的断言是否正确。如果 Alice 的断言为真,输出 'Yes';否则,输出 'No'。

输入格式

输入包含多个测试用例。第一行包含一个整数 $T(1 \le T \le 10^5)$,表示测试用例的数量。接下来是各测试用例的描述。

每个测试用例的第一行包含三个整数 $n, m, d$ ($1 \le n < m, 2 \le m \le 10^9, 0 \le d \le 10^9$),其中 $n$ 和 $m$ 分别代表 Alice 断言中的组数和物品总数。符号 $d$ 表示 Alice 声称必然会有一个组的物品数量大于或等于 $d$。

输出格式

对于每组数据,输出一个字符串。如果 Alice 的断言正确,输出 'Yes';否则,输出 'No'。

样例

输入格式 1

3
1 2 1
2 3 2
3 10 4

输出格式 1

Yes
Yes
Yes

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.