๐Ÿ ํŒŒ์ด์ฌ ์ƒ์ดˆ์งœ

[BOJ][Python] ๋ฐฑ์ค€ 10101๋ฒˆ: ์‚ผ๊ฐํ˜• ์™ธ์šฐ๊ธฐ

์„ ๋‹ฌ 2024. 9. 18. 05:58
๋ฐ˜์‘ํ˜•

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

 

angles = []
sum = 0

for i in range(3):
    a = int(input())
    sum += a
    angles.append(a)

if sum != 180:
    print("Error")
else:
    angles.sort()
    if angles[0]==60 and angles[1]==60:
        print("Equilateral")
    elif angles[0]==angles[1] or angles[1]==angles[2]:
        print("Isosceles")
    else:
        print("Scalene")
๋ฐ˜์‘ํ˜•