본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#335 백준 파이썬 [10101] 삼각형 외우기

https://www.acmicpc.net/problem/10101

 

PYTHON CODE

angle = [int(input()) for _ in range(3)]

if sum(angle) == 180:
    if angle[0] == angle[1] == angle[2]:
        print('Equilateral')
    elif angle[0] == angle[1] or angle[1] == angle[2] or angle[2] == angle[0]:
        print('Isosceles')
    else:
        print('Scalene')
else:
    print("Error")