A - 落葉の掃除
解説
/
/
実行時間制限: 2 sec / メモリ制限: 1024 MiB
配点 : 200 点
問題文
高橋君の庭には木が A 本あり、秋になると 1 本の木からちょうど B 枚の葉が落ちます。
高橋君は 1 日に最大 C 枚の落葉を掃除できます。 D 日間で庭の落葉をすべて掃除し終えることができるなら Yes を、できないなら No を出力してください。
制約
- 1 \leq A \leq 1000
- 1 \leq B \leq 1000
- 1 \leq C \leq 1000
- 1 \leq D \leq 1000
- 入力はすべて整数
入力
入力は以下の形式で標準入力から与えられる。
A B C D
- 1 行目には、木の本数 A 、 1 本あたりの落葉の枚数 B 、 1 日に掃除できる枚数 C 、日数 D がスペース区切りで与えられる。
出力
すべて掃除し終えることができるなら Yes を、できないなら No を 1 行で出力せよ。
入力例 1
3 100 50 7
出力例 1
Yes
入力例 2
10 100 30 20
出力例 2
No
入力例 3
1 5 100 1
出力例 3
Yes
入力例 4
646 1 816 449
出力例 4
Yes
入力例 5
236 20 948 719
出力例 5
Yes
Score : 200 pts
Problem Statement
There are A trees in Takahashi's garden, and in autumn exactly B leaves fall from each tree.
Takahashi can clean up to C fallen leaves per day. Print Yes if he can finish cleaning all the fallen leaves within D days, and No otherwise.
Constraints
- 1 \leq A \leq 1000
- 1 \leq B \leq 1000
- 1 \leq C \leq 1000
- 1 \leq D \leq 1000
- All input values are integers.
Input
The input is given from standard input in the following format:
A B C D
- The first line contains the number of trees A, the number of fallen leaves per tree B, the number of leaves that can be cleaned per day C, and the number of days D, separated by spaces.
Output
Print Yes in one line if all the leaves can be cleaned, and No otherwise.
Sample Input 1
3 100 50 7
Sample Output 1
Yes
Sample Input 2
10 100 30 20
Sample Output 2
No
Sample Input 3
1 5 100 1
Sample Output 3
Yes
Sample Input 4
646 1 816 449
Sample Output 4
Yes
Sample Input 5
236 20 948 719
Sample Output 5
Yes