๋ฐ์ํ
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")
๋ฐ์ํ
'๐ ํ์ด์ฌ ์์ด์ง' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[BOJ][Python] ๋ฐฑ์ค 1010๋ฒ: ๋ค๋ฆฌ ๋๊ธฐ (0) | 2024.09.27 |
---|---|
[BOJ][Python] ๋ฐฑ์ค 10156๋ฒ: ๊ณผ์ (0) | 2024.09.23 |
[BOJ][Python] ๋ฐฑ์ค 10797๋ฒ: 10๋ถ์ (0) | 2024.09.22 |
[BOJ][Python] ๋ฐฑ์ค 5543๋ฒ: ์๊ทผ๋ ๋ (0) | 2024.09.17 |
[BOJ][Python] ๋ฐฑ์ค 10039๋ฒ: ํ๊ท ์ ์ (0) | 2024.09.16 |