永发信息网

1至35里面选5做胆再选四个数加起来和等于100

答案:1  悬赏:50  手机版
解决时间 2021-04-06 23:23
  • 提问者网友:一抹荒凉废墟
  • 2021-04-06 04:28
1至35里面选5做胆再选四个数加起来和等于100
最佳答案
  • 五星知识达人网友:一秋
  • 2021-04-06 05:43
这样的例子太多了,例如:
1 + 2 + 20 + 30 + 35 = 88
1 + 2 + 20 + 31 + 34 = 88
1 + 2 + 20 + 32 + 33 = 88
1 + 3 + 20 + 29 + 35 = 88
1 + 3 + 20 + 30 + 34 = 88
1 + 3 + 20 + 31 + 33 = 88
1 + 4 + 20 + 28 + 35 = 88
1 + 4 + 20 + 29 + 34 = 88
1 + 4 + 20 + 30 + 33 = 88
1 + 4 + 20 + 31 + 32 = 88
1 + 5 + 20 + 27 + 35 = 88
1 + 5 + 20 + 28 + 34 = 88
1 + 5 + 20 + 29 + 33 = 88
1 + 5 + 20 + 30 + 32 = 88
1 + 6 + 20 + 26 + 35 = 88
1 + 6 + 20 + 27 + 34 = 88
1 + 6 + 20 + 28 + 33 = 88
1 + 6 + 20 + 29 + 32 = 88
1 + 6 + 20 + 30 + 31 = 88
1 + 7 + 20 + 25 + 35 = 88
1 + 7 + 20 + 26 + 34 = 88
1 + 7 + 20 + 27 + 33 = 88
1 + 7 + 20 + 28 + 32 = 88
1 + 7 + 20 + 29 + 31 = 88
1 + 8 + 20 + 24 + 35 = 88
1 + 8 + 20 + 25 + 34 = 88
1 + 8 + 20 + 26 + 33 = 88
1 + 8 + 20 + 27 + 32 = 88
1 + 8 + 20 + 28 + 31 = 88
1 + 8 + 20 + 29 + 30 = 88
1 + 9 + 20 + 23 + 35 = 88
1 + 9 + 20 + 24 + 34 = 88
1 + 9 + 20 + 25 + 33 = 88
1 + 9 + 20 + 26 + 32 = 88
1 + 9 + 20 + 27 + 31 = 88
1 + 9 + 20 + 28 + 30 = 88
1 + 10 + 20 + 22 + 35 = 88
1 + 10 + 20 + 23 + 34 = 88
1 + 10 + 20 + 24 + 33 = 88
1 + 10 + 20 + 25 + 32 = 88
1 + 10 + 20 + 26 + 31 = 88
1 + 10 + 20 + 27 + 30 = 88
1 + 10 + 20 + 28 + 29 = 88
1 + 11 + 20 + 21 + 35 = 88
1 + 11 + 20 + 22 + 34 = 88
1 + 11 + 20 + 23 + 33 = 88
1 + 11 + 20 + 24 + 32 = 88
1 + 11 + 20 + 25 + 31 = 88
1 + 11 + 20 + 26 + 30 = 88
1 + 11 + 20 + 27 + 29 = 88
1 + 12 + 20 + 21 + 34 = 88
1 + 12 + 20 + 22 + 33 = 88
1 + 12 + 20 + 23 + 32 = 88
1 + 12 + 20 + 24 + 31 = 88
1 + 12 + 20 + 25 + 30 = 88
1 + 12 + 20 + 26 + 29 = 88
1 + 12 + 20 + 27 + 28 = 88
1 + 13 + 19 + 20 + 35 = 88
1 + 13 + 20 + 21 + 33 = 88
1 + 13 + 20 + 22 + 32 = 88
1 + 13 + 20 + 23 + 31 = 88
1 + 13 + 20 + 24 + 30 = 88
1 + 13 + 20 + 25 + 29 = 88
1 + 13 + 20 + 26 + 28 = 88
1 + 14 + 18 + 20 + 35 = 88
1 + 14 + 19 + 20 + 34 = 88
1 + 14 + 20 + 21 + 32 = 88
1 + 14 + 20 + 22 + 31 = 88
1 + 14 + 20 + 23 + 30 = 88
1 + 14 + 20 + 24 + 29 = 88
1 + 14 + 20 + 25 + 28 = 88
1 + 14 + 20 + 26 + 27 = 88
1 + 15 + 17 + 20 + 35 = 88
1 + 15 + 18 + 20 + 34 = 88
1 + 15 + 19 + 20 + 33 = 88
1 + 15 + 20 + 21 + 31 = 88
1 + 15 + 20 + 22 + 30 = 88
1 + 15 + 20 + 23 + 29 = 88
1 + 15 + 20 + 24 + 28 = 88
1 + 15 + 20 + 25 + 27 = 88
1 + 16 + 17 + 20 + 34 = 88
1 + 16 + 18 + 20 + 33 = 88
1 + 16 + 19 + 20 + 32 = 88
1 + 16 + 20 + 21 + 30 = 88
1 + 16 + 20 + 22 + 29 = 88
1 + 16 + 20 + 23 + 28 = 88
1 + 16 + 20 + 24 + 27 = 88
1 + 16 + 20 + 25 + 26 = 88
1 + 17 + 18 + 20 + 32 = 88
1 + 17 + 19 + 20 + 31 = 88
1 + 17 + 20 + 21 + 29 = 88
1 + 17 + 20 + 22 + 28 = 88
1 + 17 + 20 + 23 + 27 = 88
1 + 17 + 20 + 24 + 26 = 88
1 + 18 + 19 + 20 + 30 = 88
1 + 18 + 20 + 21 + 28 = 88
1 + 18 + 20 + 22 + 27 = 88
1 + 18 + 20 + 23 + 26 = 88
1 + 18 + 20 + 24 + 25 = 88
1 + 19 + 20 + 21 + 27 = 88
1 + 19 + 20 + 22 + 26 = 88
1 + 19 + 20 + 23 + 25 = 88
1 + 20 + 21 + 22 + 24 = 88
2 + 3 + 20 + 28 + 35 = 88
2 + 3 + 20 + 29 + 34 = 88
2 + 3 + 20 + 30 + 33 = 88
2 + 3 + 20 + 31 + 32 = 88
2 + 4 + 20 + 27 + 35 = 88
2 + 4 + 20 + 28 + 34 = 88
2 + 4 + 20 + 29 + 33 = 88
2 + 4 + 20 + 30 + 32 = 88
2 + 5 + 20 + 26 + 35 = 88
2 + 5 + 20 + 27 + 34 = 88
2 + 5 + 20 + 28 + 33 = 88
2 + 5 + 20 + 29 + 32 = 88
2 + 5 + 20 + 30 + 31 = 88
2 + 6 + 20 + 25 + 35 = 88
等等。。。
这是php程序跑出来的,
程序如下:
ini_set('max_execution_time', '0');
// 有哪两个质数组成:57 33 39 119 91 95
$i = 0;
$array = array();
for ($a = 1; $a <= 35; $a++) {

for ($b = 1; $b <= 35; $b++) {
if ($b != $a){
for ($c = 1; $c <= 35; $c++) {
if ($c != $a $c != $b){
for ($d = 1; $d <= 35; $d++) {
if($d != $a $d != $b $d != $c){
for ($e = 1; $e <= 35; $e++) {

if($e != $a $e != $b $e != $c $e != $d){

if( ($a + $b + $c + $d + $e == 88) ($a == 20 || $b == 20 || $c == 20 || $d == 20 || $e == 20) ){
$flag = true;
if ( ! empty($array) ) {
foreach ($array as $key => $v) {
if (in_array($a, $v) in_array($b, $v) in_array($c, $v) in_array($d, $v) in_array($e, $v)){
$flag = false;
break;
}
}
}
if ($flag){
$array[$i][] = $a;
$array[$i][] = $b;
$array[$i][] = $c;
$array[$i][] = $d;
$array[$i][] = $e;
echo "$a + $b + $c + $d + $e = 88
";
++$i;
}
}
}
}
}
}
}
}
}
}
}
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯