A12716 | Vus the Cossack and a Contest
时间限制1s
内存限制256MB
通过 / 提交0/0
题目描述
Vus the [Cossack](https://en.wikipedia.org/wiki/Cossacks) holds a programming competition, in which $n$ people participate. He decided to award them all with pens and notebooks. It is known that Vus has exactly $m$ pens and $k$ notebooks.
Determine whether the Cossack can reward all participants, giving each of them at least one pen and at least one notebook.
Determine whether the Cossack can reward all participants, giving each of them at least one pen and at least one notebook.
输入格式
The first line contains three integers $n$ , $m$ , and $k$ ( $1 \leq n, m, k \leq 100$ ) — the number of participants, the number of pens, and the number of notebooks respectively.
输出格式
Print "Yes" if it possible to reward all the participants. Otherwise, print "No".
You can print each letter in any case (upper or lower).
You can print each letter in any case (upper or lower).
输入输出样例
输入 #1
5 8 6
输出 #1
Yes
输入 #2
3 9 3
输出 #2
Yes
输入 #3
8 5 20
输出 #3
No
In the first example, there are $5$ participants. The Cossack has $8$ pens and $6$ notebooks. Therefore, he has enough pens and notebooks.
In the second example, there are $3$ participants. The Cossack has $9$ pens and $3$ notebooks. He has more than enough pens but only the minimum needed number of notebooks.
In the third example, there are $8$ participants but only $5$ pens. Since the Cossack does not have enough pens, the answer is "No".
In the second example, there are $3$ participants. The Cossack has $9$ pens and $3$ notebooks. He has more than enough pens but only the minimum needed number of notebooks.
In the third example, there are $8$ participants but only $5$ pens. Since the Cossack does not have enough pens, the answer is "No".
C++ 编辑器
输入
输出
可保存默认模板;新题优先使用已保存模板。
当前快捷键仅展示,暂不支持修改。
- 撤销
Ctrl / ⌘ + Z - 重做
Ctrl / ⌘ + Y - 查找
Ctrl / ⌘ + F - 全选
Ctrl / ⌘ + A - 复制
Ctrl / ⌘ + C - 剪切
Ctrl / ⌘ + X - 粘贴
Ctrl / ⌘ + V - 自动排版
工具栏排版按钮 - 草稿保存
编辑时自动保存到本机
历史
提交记录
状态说明时间源码
AI
作答助手
你好,我是作答助手。可以问思路、复杂度、样例含义或代码报错原因;不会直接给出完整 AC 代码。
确定要清空代码吗?
提交通过
评测结果:Accepted