Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86603 丁俊杰 水仙花数II Python3 Accepted 39 MS 3768 KB 239 2024-07-26 23:13:20

Tests(10/10):


Code:

m,n=map(int,input().split()) results=[] for x in range(m,n+1): a=x//100 b=x//10%10 c=x%10 if a**3+b**3+c**3==x: results.append(x) if len(results)>0: print(*results) else: print("no")