#26199: python 解法


www.abc35938454@gmail.com (閃電a)

學校 : 國立臺中第一高級中學
編號 : 152583
來源 : [180.217.74.218]
最後登入時間 :
2022-05-24 09:51:27
d980. 11479 - Is this the easiest problem? -- UVa11479 | From: [180.217.132.42] | 發表日期 : 2021-07-22 21:06

from sys import stdout

n = int(input())

lis = ["Scalene","Isosceles","","Equilateral"]

for i in range(1,n+1) :

    a = [int(s) for s in input().split()]

    stdout.write("Case "+str(i)+": ")

    if sum(a)<=2*max(a): 

        print("Invalid")

        continue

 

    ct = 0

    if a[0]==a[1]: ct+=1

    if a[1]==a[2]: ct+=1

    if a[2]==a[0]: ct+=1

    print(lis[ct])

 

 
ZeroJudge Forum