0,1,2,3,4,5,6,7,8,9这几个数字不能重复填空()+()=()+()=()+()=()+()-()+()请高手填!

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/05 14:45:04
0,1,2,3,4,5,6,7,8,9这几个数字不能重复填空()+()=()+()=()+()=()+()-()+()请高手填!
xSn@ΖN-Jq+A?qU8iEp7]`s=kd8g3lXͱy_oPxl4hq;}Q4CjҼ(̑\]~u a%}gϛ >zk;ԦC}wh?. _x]G myFΒv|$`D<|;I"jt;za;Avg-]o-i(zi>f)Y&' (N08d`- 30 (,+pE7|A4}U}d.Bk а7U}A)dy&E0_y 0dh ep Q"7_IRqz?.Xsq(Qa(FnĤ1BKQ+TU}V/b2~-X3eT& X/Yq

0,1,2,3,4,5,6,7,8,9这几个数字不能重复填空()+()=()+()=()+()=()+()-()+()请高手填!
0,1,2,3,4,5,6,7,8,9这几个数字不能重复填空
()+()=()+()=()+()=()+()-()+()请高手填!

0,1,2,3,4,5,6,7,8,9这几个数字不能重复填空()+()=()+()=()+()=()+()-()+()请高手填!
首先把他们都加在一起
就是45
而所有的等式都加在一起应该是4的倍数
也就是说
45减掉了一个数字的两倍变成了4的倍数
当然是不可能了
所以其实这个题无解的

1+8=3+6=4+5=9+0=2+7

a = perms(0:1:2:3:4:5:6:7:8:9);
ans =[];
index =0;
for i = 1:length(a(:,1))
if (a(i,1)+a(i,2) == a(i,3)+a(i,4))
if (a(i,3)+a(i,4) == a(i,5)+a(i,6))
if a...

全部展开

a = perms(0:1:2:3:4:5:6:7:8:9);
ans =[];
index =0;
for i = 1:length(a(:,1))
if (a(i,1)+a(i,2) == a(i,3)+a(i,4))
if (a(i,3)+a(i,4) == a(i,5)+a(i,6))
if a(i,1)+a(i,2) == a(i,7)+a(i,8)-a(i,9)+a(i,10)
ans = a(i,:)
index = index +1;
end
end
end
end
-----------------------
answer is empty! There is no solution!!!!!!

收起