¦p¦ó±q¤@°ï¼Æ¦r§ä¥X¥[Á`²Å¦X¯S©wÈ
- ©«¤l
- 100
- ¥DÃD
- 37
- ºëµØ
- 0
- ¿n¤À
- 139
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2010-8-11
- ³Ì«áµn¿ý
- 2024-3-12
|
¦p¦ó±q¤@°ï¼Æ¦r§ä¥X¥[Á`²Å¦X¯S©wÈ
½Ð°Ý¦p¦ó±q¤U¦C31ӼƦr,§ä¥X¥[Á`µ¥©ó 49177 ?
39824 39615 24616 13572 12760 10530 9963 8090 7290 7240 6300 5940 5822 5814
4536 4342 4114 3816 3150 3078 2520 1944 1881 1560 1232 1170 1062 972 816 729 63318 |
|
|
|
|
|
|
- ©«¤l
- 262
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 280
- ÂI¦W
- 17
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- Office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- HK
- µù¥U®É¶¡
- 2015-8-11
- ³Ì«áµn¿ý
- 2024-11-19
|
¼M¼ÆȤ¸¯À¦³31Ó, ³Ì¤j¥i¯à²Õ¦X¦¸¼Æ= 2^31, °N¯à¸Õ¸Õ:- Option Explicit
- Dim b(), c(1), m&, k&, f$, t(1), dgt As Boolean
- Sub zz()
- Dim a, i&
- Range("d2:d" & Rows.Count).ClearContents
- dgt = False
- f = "+"
- a = Split("39824 39615 24616 13572 12760 10530 9963 8090 7290 7240 6300 5940 5822 5814 4536 4342 4114 3816 3150 3078 2520 1944 1881 1560 1232 1170 1062 972 816 729 63318", " ")
- m = UBound(a) + 1
- c(1) = 49177
- ReDim b(1 To m)
- For i = 1 To m
- b(i) = a(i - 1) ', 1)
- Next i
- k = 0: Call dg("", m)
- MsgBox c(1) & "=" & Left(c(0), Len(c(0)) - 1)
- End Sub
- Sub dg(s$, mi&)
- Dim j&, jj&, ss$, a, bb()
- For j = 0 To 1
- If dgt Then Exit Sub
- If j Then ss = b(mi) Else ss = ""
- If mi > 1 Then Call dg(IIf(ss = "", s, ss & f & s), mi - 1) Else k = k + 1: a = IIf(ss = "", s, ss & f & s)
- If Len(a) Then
- c(0) = a
- a = Split(a, "+")
- ReDim bb(UBound(a))
- For jj = 0 To UBound(a)
- bb(jj) = Val(a(jj))
- Next
- If Application.Sum(bb) = c(1) Then dgt = True
- End If
- Next j
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|