Run ID:46363

提交时间:2023-04-16 15:01:24

m,n=map(int,input().split()) l=[] for i in range(m,n+1): count=0 s=str(i) for j in range(len(s)): count+=int(s[j])*int(s[j])*int(s[j]) if count==i: l.append(i) if len(l)==0: print("no") else: for i in range(len(l)): print(l[i],end="") if i!=len(l)-1: print(" ",end="")