B - Slot
Editorial
/
Time Limit: 2 sec / Memory Limit: 1024 MB
問題文
3 つの正整数 A,B,C が与えられます。
A,B,C が全て等しいなら Yes
を、そうでないならば No
を出力してください。
制約
- 1\leq A ,B,C\leq 9
- A,B,C は整数
入力
入力は以下の形式で標準入力から与えられる。
A B C
出力
A,B,C が全て等しいなら Yes
を、そうでないならば No
を出力せよ。
入力例 1
3 3 3
出力例 1
Yes
A=B=C=3 であるため、A,B,C はすべて等しいです。
よって、Yes
を出力します。
入力例 2
7 7 8
出力例 2
No
A=7, C=8 であるため、A と C は等しくありません。
よって、No
を出力します。
入力例 3
1 2 3
出力例 3
No
Problem Statement
You are given three positive integers A, B, and C.
Print Yes
if A, B, and C are all equal, and No
otherwise.
Constraints
- 1\leq A ,B,C\leq 9
- A, B, and C are integers.
Input
The input is given from Standard Input in the following format:
A B C
Output
Print Yes
if A, B, and C are all equal, and No
otherwise.
Sample Input 1
3 3 3
Sample Output 1
Yes
A=B=C=3, so A, B, and C are all equal.
Thus, Yes
should be printed.
Sample Input 2
7 7 8
Sample Output 2
No
A=7 and C=8, so A and C are not equal.
Thus, No
should be printed.
Sample Input 3
1 2 3
Sample Output 3
No