# Write your code here :-)
for i in range(100,1000):
x = i
a = x // 100
b = x % 10
c = x // 10 - a * 10
if a ** 3 + b ** 3 + c ** 3 == x:
print(i)
水仙花数(源码)
最新推荐文章于 2024-11-02 16:28:26 发布
# Write your code here :-)
for i in range(100,1000):
x = i
a = x // 100
b = x % 10
c = x // 10 - a * 10
if a ** 3 + b ** 3 + c ** 3 == x:
print(i)