Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79446 潘允晨 水仙花数II Python3 Accepted 41 MS 3776 KB 193 2024-07-06 10:22:07

Tests(10/10):


Code:

m,n=map(int,input().split()) s=0 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: print(x,end=" ") s+=1 if s==0: print("no")