- 问题描述:
- 有多少苹果用来分赃
- 有5个人偷了一堆苹果,他们准备在第二天进行分赃。晚上每个人都悄悄的先后 把苹果分成五份,然后拿走五分之一,多的一个扔给树上的猴子
- 第二天,大家分赃的时候,也是分成五份多一个扔给了猴子,最后一人分了一份,问,共有多少个苹果?
for($s=5;;$s++){
if($s%5 == 1){
$l = $s -round($s/5) - 1;
if ($l%5 == 1) {
$q = $l - round($l/5) - 1;
if ($q%5 == 1) {
$w = $q - round($q/5) - 1;
if ($w%5 == 1) {
$x = $w - round($w/5) - 1;
if ($x%5 == 1) {
$y = $x - round($x/5) - 1;
if ($y%5 == 1) {
echo $s;
exit;
}
}
}
}
}
}
}
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_1044.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57