- ©«¤l
- 354
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 387
- ÂI¦W
- 0
- §@·~¨t²Î
- windows7
- ³nÅ骩¥»
- vba,vb,excel2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-1-8
- ³Ì«áµn¿ý
- 2024-8-2
|
¥»©«³Ì«á¥Ñ singo1232001 ©ó 2021-7-25 21:34 ½s¿è
¦^´_ n7822123
´ú¸Õ¦¨¥\
ÁÂÁ±zªºÀ°¦£©M«ü¾É~·P®¦
¤£¦n·N«ä¡A½Ð±Ð¤@¤U :
¦C ...
ziv976688 µoªí©ó 2021-7-25 19:45
¤£¦n·N«ä¡A½Ð±Ð¤@¤U :
¦C8
For Each Num In Split(Arr(2)(R, C), ",")
¾l¼Æ = (Arr(1)(R, C) + Num - 1) Mod 49 + 1
½Ð°Ý :
Num¬O«ü¶ñ¤J±±¨î½cªº´Á¶Z¼Æ Num = "25" ¶Ü?
ÁÙ¬O¥u¬OÅÜ¼Æ ?
ÁÂÁ±z
'------------------------------------------
À°¦£¸ÑŪ¤@¤U
³o¬q¬OÁY¼g
»Ýn¥ý©î¤À
¨Ã¥B¥ý±qsplitªº°ò¦¹B¥Î¤è¦¡ ¥ý¾Ç
x=Split(Arr(2)(R, C), ",")
n¥ý¤F¸Ñ³o¬qªº·N«ä
´N¥²¶·¥ý¤F¸Ñ
Arr(2)(R, C)
¤S¬O¬Æ»ò·N«ä
Arr(1) ¸òarr(2)
§A´N·Q¹³¦¨ ¨âÓµêÀÀªº¤u§@ªí (¹ê»Ú¦WºÙ "°}¦C")
©Ò¥H
Arr(2)(R,C)
´N¥Nªí¦b²Ä¤G±iµêÀÀ¤u§@ªíªº ¬YÓÀx¦s®æ¦]¬°¦³R¦CCÄæÈ
¦]¬°¦b°}¦C¤¤ ³B²z³t«×¤ñ¸û§Ö ¤]¤ñ¸û³æ¯Â
¨Ì·Ó·Ç2¶i3¤u§@ªí[V2]¶×¤J·í«eArr(2)µêÀÀ¤u§@ªíªº¦ì¸m
³Ì²× ´N¯à¨ú±o¤@²Õ¦r¦ê ¤ñ¦p "8,27"
¦ì¸mÀ³¸Ó¬OArr(2)°}¦Cªº(0,0)
¨º»ò§Ú̦^¨ì
x=Split(Arr(2)(R, C), ",")
·N«ä´N¬O
x=Split("8,27", ",")
³o¬O¤@ºØ§Aµ¹¥L¤À¹jÈ ¦o´NÀ°§A¨Ì·Ó¤À¹jÈ ¤Á¤Àªº¨ç¼Æ ¨Ã¥B·|Ó§O¦s©ñ
¦p¤Wªº·N«ä
§Ú±N8,27 ¨Ì·Ó","²Å¸¹ ¤Á¤À
³Ì«á§Ú·|±o¨ì
8 »P27¨âÓÈ
¤À§O©ñ¦b
x(0) <-¸Ì±¬O8
x(1) <-¸Ì±¬O27
ªºùر
¦pªG§Aµ¹¥Lªº¦r¦ê¬O5,4,3,2
¨º»ò§A´N·|±o¨ì
x(0) <-¸Ì±¬O5
x(1) <-¸Ì±¬O4
x(2) <-¸Ì±¬O3
x(3) <-¸Ì±¬O2
¦p¤Wz ¦pªG·Qn¨ú±ox(1)¸ê®Æ
§ÚÌ´N¥i¥H
y=x(1)
¨º»òyªºÈ´N¬O4
±µµÛÁ¿
°j°é¤À¨âºØ
for i = 1 to 4 ³o¥Nªí³o¦^°é¬O 1 2 3 4
¥t¤@ºØ¬O
for each a In x
³o·§©À¤£¦Pªº¦a¤è«Ü²³æ
°²³] ²{¦b±«e¦³40Ó¤jÀY§L ¥L̬OA¯Z
²Ä¤@ºØ´N¬O §A»¡1¸¹ ¥L¥X¨Ó1¸¹
¦Ó¥B §A¥²¶·½T»{¸Ì±¦³¦h¤Ö¤H ¤~¤£·|º|³ø ©ÎªÌ¦h³ø
²Ä¤GºØ«h¬O §A»¡ A¯Z³ø¼Æ
³oºØ¤è¦¡ ´N¤£¥Îª¾¹D³o¯Z¦³¦h¤Ö¤H¦s¦b
¤]´N¬O ´N±q·í«eªº¶¶¦ì²Ä¤@Ó ¨ì³Ì«á¤@Ó ¤@Ó¤@Ó¦Û¤v¯¸¥X¨Ó
³o¼Ë§ÚÌ´N¯à¤F¸Ñ²Ä¤@¬q
For Each Num In Split("8,27", ",")
§ÚÌn¸Ì±ªº 8,27 ½ü¬y¯¸¶i¥hNum¸Ì±
¤è«K§ÚÌ«áÄò¨Ï¥Î
·í8¶i¥hNum¤§«á
¾l¼Æ = (Arr(1)(R, C) + Num - 1) Mod 49 + 1
§ÚÌÄ~Äò°õ¦æ¤W±³o¬q
Arr(1)(R,C) ¬O¤u§@ªí¤WM2ªº¦ì¸m ¤]´N¬O11
³Ì«á´NÅܦ¨
¾l¼Æ = (11+8-1) mod 49 +1
³Ì«áµª®×
¾l¼Æ= 18+1
µM«á ¦b¶i¦æ¤U¤@Ó 27¯¸¥X¨Ó
¾l¼Æ = (11+27-1) mod 49 +1
¾l¼Æ= 38
³Ì«á¦A§â 19¸ò38µ²¦X¤@°_
´N·|Åܦ¨
19,38 |
|