https://www.acmicpc.net/problem/10101
10101번: 삼각형 외우기
문제의 설명에 따라 Equilateral, Isosceles, Scalene, Error 중 하나를 출력한다.
www.acmicpc.net
a = int(input())
b = int(input())
c = int(input())
if a + b + c == 180:
if a == b == c:
print("Equilateral")
elif a == b or a == c or b == c:
print("Isosceles")
else:
print("Scalene")
else:
print("Error")
'Coding > 백준 온라인 저지 (Baekjoon Online Judge)' 카테고리의 다른 글
백준 온라인 저지(Baekjoon Online Judge) - 2774 : 아름다운 수 (0) | 2023.05.10 |
---|---|
백준 온라인 저지(Baekjoon Online Judge) - 2789 : 유학 금지 (0) | 2023.05.10 |
백준 온라인 저지(Baekjoon Online Judge) - 5073 : 삼각형과 세 변 (0) | 2023.05.10 |
백준 온라인 저지(Baekjoon Online Judge) - 14215 : 세 막대 (0) | 2023.05.10 |
백준 온라인 저지(Baekjoon Online Judge) - 2702 : 초6 수학 (0) | 2023.05.10 |