fork(1) download
  1. <?php
  2.  
  3. function yoba($n, $v = 1, $p = 0) {
  4. if($n == 0) return $p;
  5. if($n == 1) return $v;
  6. return yoba($n - 1, $v + $p, $v);
  7. }
  8.  
  9. echo yoba(fgets(STDIN));
Success #stdin #stdout 0.01s 20568KB
stdin
50
stdout
12586269025