[BOJ / Python] 10101 삼각형 외우기

도니·2023년 4월 11일

BOJ / Python

목록 보기
66/105
post-thumbnail

문제

백준 10101 삼각형 외우기

코드

#BOJ 10101 삼각형 외우기

a1 = int(input())
a2 = int(input())
a3 = int(input())

if a1 + a2 + a3 == 180:
    if a1 == a2 and a2 == a3:
        print('Equilateral')
    elif a1 == a2 or a2 == a3 or a3 == a1:
        print('Isosceles')
    else:
        print('Scalene')
else:
    print('Error')
profile
Where there's a will, there's a way

0개의 댓글