学习路线图
Appearance
难度:⭐
题目描述
N位
N次方和
for i in range(100, 1000): str_i = str(i) _sum = 0 for ii in str_i: _sum += pow(int(ii), 3) if _sum == i: print(i)
153 370 371 407