Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
46363 | 陈宣霖 | 水仙花数 | Python3 | Accepted | 32 MS | 3804 KB | 351 | 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="")