fork download
  1. t = {str(d):d**5 for d in range(10)}
  2. x = map(t.get, "1234567890" )
  3. print( list(x) )
  4. print( sum(i for i in range(2, 200000) if i == sum(map(t.get, str(i)))) )
Success #stdin #stdout 0.24s 9236KB
stdin
Standard input is empty
stdout
[1, 32, 243, 1024, 3125, 7776, 16807, 32768, 59049, 0]
443839