a,b,c = map(int,input().split())no = 0obt = 0right = 0acute = 0big = 0ans = []
if a + b <= c:no = 1elif (a*a + b*b) < c*c:obt = 1elif (a*a + b*b) == c*c:right = 1elif (a*a + b*b) > c*c:acute = 1
ans = sorted([a,b,c])print(ans[0],ans[1],ans[2],sep=" ",end = "\n")ans.clearif no == 1:print("No")elif obt == 1:print("Obtuse")elif right == 1:print("Right")else:print("Acute")有些可以通過但有些不行,找不太到哪裡出錯了,想請各位高手幫我看看(也希望能知道這樣寫有哪裡需要改進),謝謝!
c不一定是最長的,所以你要先找出三個數哪一個最長