webturing %!s(int64=4) %!d(string=hai) anos
pai
achega
e3c08dda56
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      F.py

+ 11 - 0
F.py

@@ -0,0 +1,11 @@
+while True:
+    n=int(input())
+    if n==0: break
+    a=n//100
+    b=(n//10)%10
+    c=n%10
+    m=a**3+b**3+c**3
+    if n==m:
+        print("Yes")
+    else:
+        print("No")