Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
134156 赵乘浩 水仙花数II Python3 Accepted 52 MS 3780 KB 360 2025-10-25 21:32:05

Tests(10/10):


Code:

def main(): m, n = map(int, input().split()) results = [] for num in range(m, n + 1): a = num // 100 b = num // 10 % 10 c = num % 10 if a**3 + b**3 + c**3 == num: results.append(str(num)) print(" ".join(results) if results else "no") if __name__ == "__main__": main()