fork download
  1. <?php
  2.  
  3. function doCut($w)
  4. {
  5. $half = $w / 2;
  6. $half_floor = floor($half);
  7. if ($half != $half_floor || $half < 2)
  8. {
  9. return "No\n";
  10. }
  11.  
  12. return "Yes\n";
  13.  
  14.  
  15. }
  16. echo doCut(2);
  17. echo doCut(20);
  18. echo doCut(99);
  19. echo doCut(44);
  20. echo doCut(14);
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
No
Yes
No
Yes
Yes