24点游戏 1234,2345,3456,4567,5678,6789。能有几种解法写几种

如题所述

第1个回答  2013-06-21
((1+2)+3)*4
(1+(2+3))*4
((1*2)*3)*4
1*((2*3)*4)
(1*(2*3))*4
1*(2*(3*4))
(1*2)*(3*4)
((1*2)*4)*3
1*((2*4)*3)
(1*(2*4))*3
1*(2*(4*3))
(1*2)*(4*3)
((1+3)+2)*4
(1+(3+2))*4
(1+3)*(2+4)
((1*3)*2)*4
1*((3*2)*4)
(1*(3*2))*4
1*(3*(2*4))
(1*3)*(2*4)
(1+3)*(4+2)
((1*3)*4)*2
1*((3*4)*2)
(1*(3*4))*2
1*(3*(4*2))
(1*3)*(4*2)
((1*4)*2)*3
1*((4*2)*3)
(1*(4*2))*3
1*(4*(2*3))
(1*4)*(2*3)
((1*4)*3)*2
1*((4*3)*2)
(1*(4*3))*2
1*(4*(3*2))
(1*4)*(3*2)
((2+1)+3)*4
(2+(1+3))*4
2/((1/3)/4)
(2/(1/3))*4
2/(1/(3*4))
((2/1)*3)*4
(2/1)*(3*4)
((2*1)*3)*4
2*((1*3)*4)
(2*(1*3))*4
2*(1*(3*4))
(2*1)*(3*4)
2/((1/4)/3)
(2/(1/4))*3
2/(1/(4*3))
((2/1)*4)*3
(2/1)*(4*3)
((2*1)*4)*3
2*((1*4)*3)
(2*(1*4))*3
2*(1*(4*3))
(2*1)*(4*3)
((2+3)+1)*4
(2+(3+1))*4
2*(3/(1/4))
(2*3)/(1/4)
((2*3)/1)*4
2*((3/1)*4)
(2*(3/1))*4
((2*3)*1)*4
2*((3*1)*4)
(2*(3*1))*4
2*(3*(1*4))
(2*3)*(1*4)
((2*3)*4)/1
2*((3*4)/1)
(2*(3*4))/1
2*(3*(4/1))
(2*3)*(4/1)
((2*3)*4)*1
2*((3*4)*1)
(2*(3*4))*1
2*(3*(4*1))
(2*3)*(4*1)
(2+4)*(1+3)
2*(4/(1/3))
(2*4)/(1/3)
((2*4)/1)*3
2*((4/1)*3)
(2*(4/1))*3
((2*4)*1)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4*(5-(2-3))
4*((5-2)+3)
((4+5)+3)*2
(4+(5+3))*2
4*((5+3)-2)
4*(5+(3-2))
((4+3)+5)*2
(4+(3+5))*2
4*((3+5)-2)
4*(3+(5-2))
4*(3-(2-5))
4*((3-2)+5)

((5+3)-4)*6
(5+(3-4))*6
(5-(4-3))*6
((5-4)+3)*6
6*((5+3)-4)
6*(5+(3-4))
6*(5-(4-3))
6*((5-4)+3)
6*((3+5)-4)
6*(3+(5-4))
6*(3-(4-5))
6*((3-4)+5)
((3+5)-4)*6
(3+(5-4))*6
(3-(4-5))*6
((3-4)+5)*6

(5-(6-7))*4
((5-6)+7)*4
((5+7)-6)*4
(5+(7-6))*4
(5+7)*(6-4)
(6-4)*(5+7)
(6-4)*(7+5)
((7+5)-6)*4
(7+(5-6))*4
(7+5)*(6-4)
(7-(6-5))*4
((7-6)+5)*4
4*(5-(6-7))
4*((5-6)+7)
4*((5+7)-6)
4*(5+(7-6))
4*((7+5)-6)
4*(7+(5-6))
4*(7-(6-5))
4*((7-6)+5)

((5+7)-8)*6
(5+(7-8))*6
(5+7)*(8-6)
(5-(8-7))*6
((5-8)+7)*6
6*((5+7)-8)
6*(5+(7-8))
6*(5-(8-7))
6*((5-8)+7)
6/((7-5)/8)
(6/(7-5))*8
6*((7+5)-8)
6*(7+(5-8))
6*(7-(8-5))
6*((7-8)+5)
6*(8/(7-5))
(6*8)/(7-5)
((7+5)-8)*6
(7+(5-8))*6
(7+5)*(8-6)
(7-(8-5))*6
((7-8)+5)*6
(8-6)*(5+7)
(8-6)*(7+5)
8*(6/(7-5))
(8*6)/(7-5)
8/((7-5)/6)
(8/(7-5))*6

6/((9-7)/8)
(6/(9-7))*8
6*(8/(9-7))
(6*8)/(9-7)
8/((9-7)/6)
(8/(9-7))*6
8*(6/(9-7))
(8*6)/(9-7)本回答被网友采纳
相似回答