백준(10101) : 삼각형 외우기

지환·2023년 9월 1일
0

백준(python)

목록 보기
24/67

출처 | https://www.acmicpc.net/problem/10101

a = int(input())
b = int(input())
c = int(input())

if a == 60 and b == 60 and c == 60:
    print("Equilateral")
else:
    if a+b+c == 180 and ((a==b) or (a==c) or (b==c)):
        print("Isosceles")
    elif a+b+c == 180 and ((a!=b) and (b!=c) and (a!=c)):
        print("Scalene")
    elif a+b+c != 180:
        print("Error")
profile
아는만큼보인다.

0개의 댓글