- ©«¤l
- 406
- ¥DÃD
- 8
- ºëµØ
- 0
- ¿n¤À
- 453
- ÂI¦W
- 0
- §@·~¨t²Î
- WINDOWS 7
- ³nÅ骩¥»
- 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2015-2-7
- ³Ì«áµn¿ý
- 2021-7-31
|
µ{¦¡½X»Pªþ¥ó¦p¤U- Function MaxRank(ªí As Range, §Ç¦C As Integer) As Double
- Dim ar() As Double
- Dim ³Ì°ª() As Double
- Dim ¥¼¿ï() As Boolean
- For Each rg In ªí
- A = A + 1
- Next
- ReDim ar(A): ReDim ³Ì°ª(A): ReDim ¥¼¿ï(A)
- For Each rg In ªí
- n = n + 1
- ar(n) = rg
- Next
- For i = 1 To A
- ³Ì°ª(i) = -1.7976E+308
- ¥¼¿ï(i) = True
- Next i
- For i = 1 To A: For j = 1 To A
- If ar(j) > ³Ì°ª(i) And ¥¼¿ï(j) Then
- ³Ì°ª(i) = ar(j)
- B = j
- End If
- Next j
- ¥¼¿ï(B) = False
- Next i
- MaxRank = ³Ì°ª(§Ç¦C)
- End Function
½Æ»s¥N½X |
|