반응형
10101번: 삼각형 외우기
문제의 설명에 따라 Equilateral, Isosceles, Scalene, Error 중 하나를 출력한다.
www.acmicpc.net
# @Author YoungMinKim
# baekjoon
import sys
angle = []
for _ in range(3):
angle.append(int(sys.stdin.readline()))
if sum(angle) != 180 : print('Error')
else:
if angle.count(60) == 3 :print('Equilateral')
else:
for i in angle:
if angle.count(i) ==2:
print('Isosceles')
break
else:
print('Scalene')
반응형
'백준 문제풀이' 카테고리의 다른 글
| baekjoon - python - 9093 (0) | 2020.11.22 |
|---|---|
| baekjoon - python - 6603 (0) | 2020.11.02 |
| baekjoon - python - 7567 (0) | 2020.10.28 |
| baekjoon - python - 15740 (0) | 2020.10.25 |
| baekjoon - python - 11728 (0) | 2020.10.25 |
댓글