webturing 4 vuotta sitten
vanhempi
commit
85e598fd01
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  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")