fork(1) download
  1. from __future__ import print_function
  2. import math
  3. import sys
  4. try:
  5. reduce = reduce
  6. except NameError:
  7. from functools import reduce
  8.  
  9.  
  10. compose = lambda *funcs: lambda x: reduce(lambda y, f: f(y), reversed(funcs), x)
  11.  
  12. compose(print, math.factorial, int)(sys.stdin.read())
Success #stdin #stdout 0.09s 10840KB
stdin
4
stdout
24