百度筆試2016,罪犯轉移(php)

dunne21發表於2021-09-09

$n = 3;
$t = 100;
$c = 2;
$a = [1,2,3];
$count = 0;
if($n>$c){
for($i=0;$c $total = 0;
$countA = 0;
for($j=0;$countA $total = $total + $a[$j];
$countA = $countA+1;
}
if($total $count = $count +1;
}
}
echo($count);
}else{
echo "data err";
}

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/1600/viewspace-2798040/,如需轉載,請註明出處,否則將追究法律責任。

相關文章