for i in range(100,1000):
a=i//100
b=i//10%10
c=i%10
if a**3+b**3+c**3==i:
print(i)
02-20
7664
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-02
2156
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
for i in range(100,1000):
a=i//100
b=i//10%10
c=i%10
if a**3+b**3+c**3==i:
print(i)