浏览代码

Add 'H.py'

webturing 4 年之前
父节点
当前提交
85e598fd01
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      H.py

+ 8 - 0
H.py

@@ -0,0 +1,8 @@
+a, b, c = sorted(list(map(int, input().strip().split())))
+if a + b > c:
+    if a*a + b*b == c*c:
+        print("yes")
+    else:
+        print("no")
+else:
+    print("not a triangle")