题解 | #三角形判断#
三角形判断
http://www.nowcoder.com/practice/689ec1e742394e09b1059556fc167b65
while True: try: a, b, c = map(int, input().split()) if a + b > c and abs(a-b) < c: if a == b and a == c and b == c: print('Equilateral triangle!') elif a != b and a != c and b != c: print('Ordinary triangle!') else: print('Isosceles triangle!') else: print('Not a triangle!') except: break
查看24道真题和解析