while True:
m,n=map(int,input().split())
e=[]
for i in range(m,n+1):
b=i//100
c=(i%100)//10
d=i%10
if i==b**3+c**3+d**3:
e.append(str(i))
if e==[]:
print('no')
else:
print(' '.join(e))
python 1096: 水仙花数(函数专题)
最新推荐文章于 2024-05-30 07:32:10 发布