fork(1) download
  1. <?php
  2. $apples = array(
  3. 100,
  4. 100
  5. );
  6. function doApple($n, $array)
  7. {
  8.  
  9. $summary = array_sum($array);
  10. $half = $summary / 200;
  11. $half_floor = floor($summary / 200);
  12. if ($half != $half_floor || $n <= 2) {
  13. return "No\n";
  14. } else {
  15. return "Yes\n";
  16. }
  17.  
  18. }
  19. echo doApple(count($apples), $apples);
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
No