Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144282 陈怡笑 11判断三角形 Python3 Compile Error 0 MS 0 KB 316 2026-01-20 22:07:11

Tests(0/0):


Code:

a,b,c=map(int,input().split()) g=abs(a-b) if a+b<c tor g>c: print("no") elif a==b==c: print("Equilateral Triangle") elif a==b or a==c or c==b: print("Isosceles Triangle") elif a**2+b**2==c**2 or a**2+c**2==b**2 or b**2+c**2==a**2: print("Right Triangle") else: print("Simple Triangle")


Run Info:

  File "Main.py", line 3
    if a+bc:
               ^
SyntaxError: invalid syntax