我把所有正确答案列举如下:
两倍关系,12组:
13458÷6729=2
13584÷6792=2
13854÷6927=2
14538÷7269=2
14586÷7293=2
14658÷7329=2
15384÷7692=2
15846÷7923=2
15864÷7932=2
18534÷9267=2
18546÷9273=2
18654÷9327=2
三倍关系,2组:
17469÷5823=3
17496÷5832=3
四倍关系,4组:
15768÷3942=4
17568÷4392=4
23184÷5796=4
31824÷7956=4
五倍关系,12组:
13485÷2697=5
13845÷2769=5
14685÷2937=5
14835÷2967=5
14865÷2973=5
16485÷3297=5
18645÷3729=5
31485÷6297=5
38145÷7629=5
46185÷9237=5
48135÷9627=5
48615÷9723=5
六倍关系,3组:
17658÷2943=6
27918÷4653=6
34182÷5697=6
七倍关系,7组:
16758÷2394=7
18459÷2637=7
31689÷4527=7
36918÷5274=7
37926÷5418=7
41832÷5976=7
53298÷7614=7
八倍关系,46组:
25496÷3187=8
36712÷4589=8
36728÷4591=8
37512÷4689=8
37528÷4691=8
38152÷4769=8
41896÷5237=8
42968÷5371=8
46312÷5789=8
46328÷5791=8
46712÷5839=8
47136÷5892=8
47328÷5916=8
47368÷5921=8
51832÷6479=8
53928÷6741=8
54312÷6789=8
54328÷6791=8
54712÷6839=8
56984÷7123=8
58496÷7312=8
58912÷7364=8
59328÷7416=8
59368÷7421=8
63152÷7894=8
63528÷7941=8
65392÷8174=8
65432÷8179=8
67152÷8394=8
67352÷8419=8
67512÷8439=8
71456÷8932=8
71536÷8942=8
71624÷8953=8
71632÷8954=8
73248÷9156=8
73264÷9158=8
73456÷9182=8
74528÷9316=8
74568÷9321=8
74816÷9352=8
75328÷9416=8
75368÷9421=8
76184÷9523=8
76248÷9531=8
76328÷9541=8
九倍关系,3组:
57429÷6381=9
58239÷6471=9
75249÷8361=9
非常感谢
8倍 编个程序就好了
程序如下 用c语言
#include <stdio.h>
int main()
{ int i,a,b,c,d,e,f,g,h,x,y;
for(i=1000;i<10000;i++){
a=i/1000;
b=(i-a*1000)/100;
c=(i-b*100-a*1000)/10;
d=(i-a*1000-b*100-c*10);
y=3*i;
if(a!=b&&a!=c&&a!=d&&b!=c&&b!=d&&c!=d)
{
if(y>10000)
{
e=y/10000;
f=(y-e*10000)/1000;
g=(y-f*1000-e*10000)/100;
h=(y-e*10000-f*1000-g*100)/10;
x=y-e*10000-f*1000-g*100-h*10;
if(a+b+c+d+e+f+g+h+x==45)
{
if(e!=f&&e!=g&&e!=h&&e!=x&&f!=g&&f!=h&&f!=x&&g!=h&&g!=x&&h!=x&&e!=a&&e!=b&&e!=c&&e!=d&&f!=a&&f!=b&&f!=c&&f!=d&&g!=a&&g!=b&&g!=c&&g!=d
&&h!=a&&h!=b&&h!=c&&h!=d&&x!=a&&x!=b&&x!=c&&x!=d
)
{
printf("%d %d\n",i,y);
}
}
}
}
}
return 0;
}
如何编程序
算法才重要
首先设n
n从1000开始 然后取个十百千各个位子的数字
然后用判断有没有相同的数字
再把n乘以个系数 我乘了8
然后得到新的数 将他取个是百千万各个位 比较各个位有没有相同的
然后输出就好了
2394/16758 = 1/7
2637/18459 = 1/7
2697/13485 = 1/5
2769/13845 = 1/5
2937/14685 = 1/5
2943/17658 = 1/6
2967/14835 = 1/5
2973/14865 = 1/5
3187/25496 = 1/8
3297/16485 = 1/5
3729/18645 = 1/5
3942/15768 = 1/4
4392/17568 = 1/4
4527/31689 = 1/7
4589/36712 = 1/8
4591/36728 = 1/8
4653/27918 = 1/6
4689/37512 = 1/8
4691/37528 = 1/8
4769/38152 = 1/8
5237/41896 = 1/8
5274/36918 = 1/7
5371/42968 = 1/8
5418/37926 = 1/7
5697/34182 = 1/6
5789/46312 = 1/8
5791/46328 = 1/8
5796/23184 = 1/4
5823/17469 = 1/3
5832/17496 = 1/3
5839/46712 = 1/8
5892/47136 = 1/8
5916/47328 = 1/8
5921/47368 = 1/8
5976/41832 = 1/7
6297/31485 = 1/5
6381/57429 = 1/9
6471/58239 = 1/9
6479/51832 = 1/8
6729/13458 = 1/2
6741/53928 = 1/8
6789/54312 = 1/8
6791/54328 = 1/8
6792/13584 = 1/2
6839/54712 = 1/8
6927/13854 = 1/2
7123/56984 = 1/8
7269/14538 = 1/2
7293/14586 = 1/2
7312/58496 = 1/8
7329/14658 = 1/2
7364/58912 = 1/8
7416/59328 = 1/8
7421/59368 = 1/8
7614/53298 = 1/7
7629/38145 = 1/5
7692/15384 = 1/2
7894/63152 = 1/8
7923/15846 = 1/2
7932/15864 = 1/2
7941/63528 = 1/8
7956/31824 = 1/4
8174/65392 = 1/8
8179/65432 = 1/8
8361/75249 = 1/9
8394/67152 = 1/8
8419/67352 = 1/8
8439/67512 = 1/8
8932/71456 = 1/8
8942/71536 = 1/8
8953/71624 = 1/8
8954/71632 = 1/8
9156/73248 = 1/8
9158/73264 = 1/8
9182/73456 = 1/8
9237/46185 = 1/5
9267/18534 = 1/2
9273/18546 = 1/2
9316/74528 = 1/8
9321/74568 = 1/8
9327/18654 = 1/2
9352/74816 = 1/8
9416/75328 = 1/8
9421/75368 = 1/8
9523/76184 = 1/8
9531/76248 = 1/8
9541/76328 = 1/8
9627/48135 = 1/5
9723/48615 = 1/5