- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 3# q1a2z5
¦Û©w¸q¨ç¼Æ , ½Æ»s¤U±¥N½X¦Ü¤@¯ë¼Ò²Õ
¦p¦bA1¥´¤W =LightGame(C2,B4,B7,D7,D4)
·|Åã¥ÜC2,B4,B7 , §Y¬O¨Ï¤¿O¥þ«G©Ò»Ý¶}Ãöªº¿O
¶·ª`·N°Ñ¼Æn¨Ì¶¶®É°w©Î°f®É°w¶ñ¤J
¥N½X²ÊÁW´N¤£¦h¸ÑÄÀ¤F- Function LightGame(in1, in2, in3, in4, in5) As String
- Dim adr(1 To 5)
- Dim d
- Dim init_s As String, op As String
- Dim i, j, k, m, ks
-
- adr(1) = in1.Address(0, 0)
- adr(2) = in2.Address(0, 0)
- adr(3) = in3.Address(0, 0)
- adr(4) = in4.Address(0, 0)
- adr(5) = in5.Address(0, 0)
-
- Set d = CreateObject("scripting.dictionary")
-
- init_s = in1 & "," & in2 & "," & in3 & "," & in4 & "," & in5 'ªì©lª¬ºA
- d.Add "0", init_s
-
- For i = 1 To 5
- For Each k In d.keys
- ks = Split(k, ",")
- For j = ks(UBound(ks)) + 1 To 5
- s = Split(d(k), ",")
- Select Case j - 1
- Case LBound(s)
- s(UBound(s)) = IIf(s(UBound(s)) = "«G", "·À", "«G")
- s(j - 1) = IIf(s(j - 1) = "«G", "·À", "«G")
- s(j) = IIf(s(j) = "«G", "·À", "«G")
- Case UBound(s)
- s(j - 2) = IIf(s(j - 2) = "«G", "·À", "«G")
- s(j - 1) = IIf(s(j - 1) = "«G", "·À", "«G")
- s(LBound(s)) = IIf(s(LBound(s)) = "«G", "·À", "«G")
- Case Else
- s(j - 2) = IIf(s(j - 2) = "«G", "·À", "«G")
- s(j - 1) = IIf(s(j - 1) = "«G", "·À", "«G")
- s(j) = IIf(s(j) = "«G", "·À", "«G")
- End Select
- d(k & "," & j) = Join(s, ",")
-
- If Join(s, ",") = "«G,«G,«G,«G,«G" Then
- ks = Split(k & "," & j, ",")
- For m = 1 To UBound(ks)
- If op = "" Then op = adr(ks(m)) Else op = op & "," & adr(ks(m))
- Next m
- LightGame = op
- Set d = Nothing
- Exit Function
- End If
- Next j
- Next k
- Next i
- End Function
½Æ»s¥N½X |
|