A - Issuing Certificates
Editorial
/
/
Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 166 点
問題文
高橋君は市役所で証明書を N 枚交付してもらいます。証明書は 1 枚につき A 円の手数料がかかります。
高橋君は B 円持っています。高橋君が N 枚すべての手数料を払えるなら Yes を、払えないなら No を出力してください。
制約
- 1 \leq N \leq 100
- 1 \leq A \leq 1000
- 1 \leq B \leq 100000
- 入力はすべて整数
入力
入力は以下の形式で標準入力から与えられる。
N A B
- 1 行目には、証明書の枚数 N 、 1 枚あたりの手数料 A 、高橋君の所持金 B がスペース区切りで与えられる。
出力
N 枚すべての手数料を払えるなら Yes を、払えないなら No を 1 行で出力せよ。
入力例 1
3 200 500
出力例 1
No
入力例 2
1 200 500
出力例 2
Yes
入力例 3
2 250 600
出力例 3
Yes
入力例 4
45 252 66831
出力例 4
Yes
入力例 5
63 662 32593
出力例 5
No
Score : 166 pts
Problem Statement
Takahashi will have N certificates issued at the city office. Each certificate costs A yen as a fee.
Takahashi has B yen. If he can pay the fees for all N certificates, print Yes; otherwise, print No.
Constraints
- 1 \leq N \leq 100
- 1 \leq A \leq 1000
- 1 \leq B \leq 100000
- All input values are integers.
Input
The input is given from standard input in the following format:
N A B
- The first line contains the number of certificates N, the fee per certificate A, and Takahashi's money B, separated by spaces.
Output
If he can pay the fees for all N certificates, print Yes; otherwise, print No, in a single line.
Sample Input 1
3 200 500
Sample Output 1
No
Sample Input 2
1 200 500
Sample Output 2
Yes
Sample Input 3
2 250 600
Sample Output 3
Yes
Sample Input 4
45 252 66831
Sample Output 4
Yes
Sample Input 5
63 662 32593
Sample Output 5
No