用122234可以组成几个不同的六位数,每个数字都要用上?
2个回答
展开全部
120个。
Private Sub TSNextArr1()
Dim Arr, k1&, i&, j&, Dic As Object, St$, Ji&, JiMax&
Set Dic = CreateObject("Scripting.Dictionary")
k1 = 0
Arr = Array(1, 2, 2, 2, 3, 4) '升序,得到全排列
Do
i = i + 1
St = Arr(0): For j = 1 To UBound(Arr): St = St & "" & Arr(j): Next j
Dic(St) = i
Call NextArr(Arr, k1)
Loop Until k1 < 0
[c1].Resize(Dic.Count, 2) = _
Application.WorksheetFunction.Transpose(Array(Dic.keys, Dic.items))
Set Dic = Nothing
End Sub
Private Sub TSNextArr1()
Dim Arr, k1&, i&, j&, Dic As Object, St$, Ji&, JiMax&
Set Dic = CreateObject("Scripting.Dictionary")
k1 = 0
Arr = Array(1, 2, 2, 2, 3, 4) '升序,得到全排列
Do
i = i + 1
St = Arr(0): For j = 1 To UBound(Arr): St = St & "" & Arr(j): Next j
Dic(St) = i
Call NextArr(Arr, k1)
Loop Until k1 < 0
[c1].Resize(Dic.Count, 2) = _
Application.WorksheetFunction.Transpose(Array(Dic.keys, Dic.items))
Set Dic = Nothing
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询