上传文件至 'demo1'

This commit is contained in:
206530115 2021-06-15 17:06:38 +08:00
parent 5fa13648c4
commit 7ffe7cf598
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#100到999之间的水仙花数
#水仙花数举例153=1*1*1+5*5*5+10*10*10
for item in range(100,1000):
ge=item %10
shi=item//10%10
bai=item//100
if item==ge*ge*ge+shi*shi*shi+bai*bai*bai:
print(item)