n=eval(input())
while n!=1 and n!=4:
num=list(str(n))
n=0
for i in num:
n+=int(i)**2
if n==1:
print(“True”)
else:
print(“False”)
快乐的数字
最新推荐文章于 2022-01-09 10:43:35 发布
n=eval(input())
while n!=1 and n!=4:
num=list(str(n))
n=0
for i in num:
n+=int(i)**2
if n==1:
print(“True”)
else:
print(“False”)