Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
160662 杨炬铃 水仙花数 Python3 Accepted 47 MS 3780 KB 281 2026-09-26 09:32:54

Tests(10/10):


Code:

m,n=map(int,input().split()) there=False def f(x): count=0 for i in str(x): count+=int(i)**3 if count == x: return True return False for k in range(m,n+1): if f(k): print(k) there=True if not(there): print("no")