You are given three integers A, B and C. Determine if there exists an equilateral…
- User
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, printNo.Examples
Input
2 2 2
Output
Yes
Input
3 4 5
Output
No
Assistant
We need to read three integers, check if they are all equal. If yes, print "Yes", else "No". Very straightforward.
Constraints: 1 <= A,B,C <= 100, integers.
Implementation: read from stdin, split, convert to int, compare.
Edge cases: all equal? Yes.
We should output exactly "Yes" or "No" with proper capitalization.
We can do it in Python.
Pseudo:
def main(): import sys a,b,c = map(int, sys.stdin.read().split()) if a == b == c: print("Yes") else: print("No")
if name == "main": main()
That's it. ```python
import sys
def main() -> None: # Read three integers from standard input a, b, c = map(int, sys.stdin.read().split()) # Check if all three are equal if a == b == c: print("Yes") else: print("No")
if name == "main": main()
code
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.