题解 | #水仙花数#
水仙花数
http://www.nowcoder.com/practice/dc943274e8254a9eb074298fb2084703
while 1:
try:
m, n = map(int, input().split())
flag = 0
for i in range(m, n+1):
tmp = i
sum = 0
while tmp:
sum += (tmp%10)**3
tmp //= 10
if sum == i:
print(i, end=" ")
flag = 1
if flag == 0:
print("no")
except:
break