5 5 5 3 3 5 7 13算24点点

3,5,7,9算24点,3种方法_百度知道用5,6,3,3算24点游戏***有多少种 - 爱问知识人
(window.slotbydup=window.slotbydup || []).push({
id: '2491531',
container: s,
size: '150,90',
display: 'inlay-fix'
用5,6,3,3算24点游戏***有多少种
去掉重复的,一共六种,如下:
我认为 ((6-3)+5)*3 和 ((5-3)+6)*3 是一种情况,即(5+6-3)*3
可以在Excel中做宏,把重复的去掉(考虑到某种情况,会有***是-24的结果),得出六种情况:
Sub compute()
Dim m(4) As String
Dim j1, j2, j3, j4 As Integer
m(1) = "3"
m(2) = "3"
m(3) = "5"
m(4) = "6"
Worksheets("Sheet1").Cells(3, 1).Value = 0
For j1 = 1 To 4
For j2 = 1 To 4
For j3 = 1 To 4
For j4 = 1 To 4
If j1 && j2 And j1 && j3 And j1 && j4 And j2 && j3 And j2 &&
去掉重复的,一共六种,如下:
我认为 ((6-3)+5)*3 和 ((5-3)+6)*3 是一种情况,即(5+6-3)*3
可以在Excel中做宏,把重复的去掉(考虑到某种情况,会有***是-24的结果),得出六种情况:
Sub compute()
Dim m(4) As String
Dim j1, j2, j3, j4 As Integer
m(1) = "3"
m(2) = "3"
m(3) = "5"
m(4) = "6"
Worksheets("Sheet1").Cells(3, 1).Value = 0
For j1 = 1 To 4
For j2 = 1 To 4
For j3 = 1 To 4
For j4 = 1 To 4
If j1 && j2 And j1 && j3 And j1 && j4 And j2 && j3 And j2 && j4 And j3 && j4 Then
Call point24(m(j1), m(j2), m(j3), m(j4))
Function point24(a As String, b As String, c As String, d As String)
Dim i1, i2, i3 As Integer
Dim s(4, 4, 4) As String
Dim fuhao As String
For i1 = 1 To 4
For i2 = 1 To 4
For i3 = 1 To 4
s(i1, i2, i3) = a
Select Case i1
fuhao = "+"
fuhao = "-"
fuhao = "*"
fuhao = "/"
End Select
s(i1, i2, i3) = s(i1, i2, i3) & fuhao & b
Select Case i2
fuhao = "+"
fuhao = "-"
fuhao = "*"
fuhao = "/"
End Select
s(i1, i2, i3) = "(" & s(i1, i2, i3) & ")" & fuhao & c
Select Case i3
fuhao = "+"
fuhao = "-"
fuhao = "*"
fuhao = "/"
End Select
s(i1, i2, i3) = "(" & s(i1, i2, i3) & ")" & fuhao & d
Worksheets("Sheet1").Cells(1, 1).Value = "=" & s(i1, i2, i3)
Worksheets("Sheet1").Cells(2, 1).Value = s(i1, i2, i3)
Worksheets("Sheet1").Cells(3, 1).Value = Worksheets("Sheet1").Cells(3, 1).Value + 1
If CLng(Worksheets("Sheet1").Cells(1, 1).Value) = 24 Or CLng(Worksheets("Sheet1").Cells(1, 1).Value) = -24 Then
Worksheets("Sheet1").Cells(2, 1).Copy
MsgBox ("I got it!")
End Function
大家还关注用3个5一个2怎么算24点_百度知道3,-5,11,7算24点
(7-3)*(11-5)=4*6=24我把我的诀窍教给你吧,24=3*8=4*6=20+4;所以有3的时候,想怎么凑8,有4的时候想怎么凑6,如果都不行,就想怎么加加减减.
为您推荐:
其他类似问题
扫描下载二维码5、5、5、3算24点5、5、5、算24点
【尘埃】?沿
(5*5*5-5)/5=24
为您推荐:
其他类似问题
(5的三次方-5)/5~只能用加减乘除的正常办法我也不会……5三次方125~125-5=120~120/5=24
(5×5×5-5)÷5=(125-5)÷5=120÷5=24
5!*(5/5)!表示一个正整数与一切小于他的正整数的乘积。
没有***!
扫描下载二维码

参考资料

 

随机推荐