fork download
  1. def mrange(mask):
  2. x = 0
  3. while x != mask:
  4. x = (x - mask) & mask
  5. yield x
  6.  
  7. def f( i ) :
  8. global s
  9. if s[i] :
  10. return s[i]
  11. for x in mrange(i & (i - 1)) :
  12. fk = fork( f(x), f(i-x) )
  13. s[i] = merge( s[i], fk )
  14. return s[i]
  15.  
Success #stdin #stdout 0.01s 7848KB
stdin
Standard input is empty
stdout
Standard output is empty