CF1186A.Vus the Cossack and a Contest

入门

通过率:0%

时间限制:1.00s

内存限制:256MB

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Vus the Cossack holds a programming competition, in which nn people participate. He decided to award them all with pens and notebooks. It is known that Vus has exactly mm pens and kk notebooks.

Determine whether the Cossack can reward all participants, giving each of them at least one pen and at least one notebook.

瓦斯这位哥萨克人举办了一场编程竞赛,共有 nn 人参加。他决定给所有参赛者颁发钢笔和笔记本。已知瓦斯恰好有 mm 支钢笔和 kk 本笔记本。

请判断这位哥萨克人能否给所有参赛者都颁奖,使得每人至少获得一支钢笔和一本笔记本。

输入格式

The first line contains three integers nn, mm, and kk (1≤n,m,k≤1001 \leq n, m, k \leq 100) — the number of participants, the number of pens, and the number of notebooks respectively.

第一行包含三个整数 nn、mm 和 kk(1≤n,m,k≤1001 \leq n, m, k \leq 100),分别表示参与者的数量、钢笔的数量和笔记本的数量。

输出格式

Print "Yes" if it possible to reward all the participants. Otherwise, print "No".

You can print each letter in any case (upper or lower).

如果可以奖励所有参与者,则输出“Yes”;否则输出“No”。

你可以以任意大小写(大写或小写)输出每个字母。

输入输出样例

  • 输入#1

    5 8 6

    输出#1

    Yes
  • 输入#2

    3 9 3

    输出#2

    Yes
  • 输入#3

    8 5 20

    输出#3

    No

说明/提示

In the first example, there are 55 participants. The Cossack has 88 pens and 66 notebooks. Therefore, he has enough pens and notebooks.

In the second example, there are 33 participants. The Cossack has 99 pens and 33 notebooks. He has more than enough pens but only the minimum needed number of notebooks.

In the third example, there are 88 participants but only 55 pens. Since the Cossack does not have enough pens, the answer is "No".

在第一个例子中,有 55 名参与者。哥萨克有 88 支钢笔和 66 本笔记本,因此他拥有的钢笔和笔记本数量充足。

在第二个例子中,有 33 名参与者。哥萨克有 99 支钢笔和 33 本笔记本。他的钢笔数量绰绰有余,但笔记本数量恰好达到最低需求。

在第三个例子中,有 88 名参与者,但仅有 55 支钢笔。由于哥萨克的钢笔数量不足,答案为“No”。

输入解题思路,AI测评打分。不知道怎么写?

首页