

def narcissus(x):
if int(x)==pow(int(x[0]),3)+pow(int(x[1]),3)+pow(int(x[2]),3):
return 1
else:
return 0
while True:
m,n = map(int,input().split())
key = 0
for i in range(m,n+1):
if narcissus(str(i))==1:
print(i,end=" ")
key = 1
if key == 0:
print("no")
else:
print("")
由于未提供博客具体内容,无法给出包含关键信息的摘要。
2798

被折叠的 条评论
为什么被折叠?



