fork download
  1. <?php
  2. function block($x) {
  3. echo $x . PHP_EOL;
  4. }
  5. $i=0;
  6. do {
  7. switch($i) {
  8. case 0: block("\(father) \(name)"); $i++;
  9. case 1: block("\(mother) \(name)"); $i++;
  10. case 2: block("\(child) \(name)"); $i++;
  11. default: break;
  12. }
  13. } while (true);
Time limit exceeded #stdin #stdout 5s 222592KB
stdin
Standard input is empty
stdout
\(father) \(name)
\(mother) \(name)
\(child) \(name)