A - Regular Triangle
Editorial
/
Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
3 つの整数 A,B,C が与えられます。
三辺の長さがそれぞれ A,B,C であるような正三角形が存在するかどうか判定してください。
制約
- 入力は全て整数である。
- 1 \leq A,B,C \leq 100
入力
入力は以下の形式で標準入力から与えられる。
A B C
出力
三辺の長さが A,B,C であるような正三角形が存在するなら Yes
を、そうでなければ No
を出力せよ。
入力例 1
2 2 2
出力例 1
Yes
- 三辺の長さが 2,2,2 であるような正三角形は存在します。
入力例 2
3 4 5
出力例 2
No
- 三辺の長さが 3,4,5 であるような正三角形は存在しません。
Score : 100 points
Problem Statement
You are given three integers A, B and C.
Determine if there exists an equilateral triangle whose sides have lengths A, B and C.
Constraints
- All values in input are integers.
- 1 \leq A,B,C \leq 100
Input
Input is given from Standard Input in the following format:
A B C
Output
If there exists an equilateral triangle whose sides have lengths A, B and C, print Yes
; otherwise, print No
.
Sample Input 1
2 2 2
Sample Output 1
Yes
- There exists an equilateral triangle whose sides have lengths 2, 2 and 2.
Sample Input 2
3 4 5
Sample Output 2
No
- There is no equilateral triangle whose sides have lengths 3, 4 and 5.