fork download
  1. import math
  2. def strong_num():
  3. return [x for x in range(1,1000) if x==int(reduce(lambda p,q:math.factorial(int(p))+math.factorial(int(q)),str(x)))]
  4.  
  5. print(strong_num())
Time limit exceeded #stdin #stdout 5s 10952KB
stdin
1000
stdout

Standard output is empty