fork(1) download
  1. for n in range (100,1000,1):
  2. c = n%10
  3. b = int(((n-c)%100)/10)
  4. a = n - 10*b -c
  5. if n == a*a*a + b*b*b + c*c*c:
  6. print (n)
Success #stdin #stdout 0.02s 7116KB
stdin
Standard input is empty
stdout
Standard output is empty