https://www.acmicpc.net/problem/5073
import sys
while(True):
t=list(map(int,input().split()))
t.sort()
d=set(t)
if t[0]==0 and t[1]==0 and t[2]==0:
break
if t[0]==t[1]==t[2]:
print("Equilateral")
if t[0]+t[1]>t[2]:
if len(d)==2:
print("Isosceles")
elif len(d)==3:
print("Scalene")
else:
print("Invalid")
중복되는 요소 빼주기
두 변만 같다는것은 중복되는 요소를 빼고나면 2개가 남는다는 의미 이기 때문에
중복 제거된 리스트를 d로 저장했고, 그 d의 길이로 삼각형을 판별하였음