fork download
  1. function doSquare($n, $m, $a)
  2. {
  3. $square = $n * $m;
  4. $count = ceil ($square / $a);
  5. return $count;
  6. }
  7.  
  8. function doCut($w)
  9. {
  10. $half = $w / 2;
  11. if (is_int($half))
  12. {
  13. return "yes\n";
  14. }
  15. else {
  16. return "no\n";
  17. }
  18. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
function doSquare($n, $m, $a)
{
	$square = $n * $m;
	$count = ceil ($square / $a);
	return $count;
}

function doCut($w)
{
	$half = $w / 2;	
	if (is_int($half))
	{
		return "yes\n";
	}
	else {
		return "no\n";
	}
}