for i in range(100,1000): B = i//100 S = i//10%10 G = i%10 if B*B*B + S*S*S +G*G*G ==i: print(i)print()for i in range(100,1000): j=str(i) B=int(j[0]) S=int(j[1]) G=int(j[2]) if B*B*B + S*S*S +G*G*G ==i: print(i)
回答于 2021-02-23 14:24