Public Function 數字歸類(NumAR, ByVal 位數 As Long)
' 位數 need >= 0
Set c_max = CreateObject("Scripting.Dictionary")
Set c_min = CreateObject("Scripting.Dictionary")
For Each n In NumAR
root = n \ (10 ^ 位數)
n = n Mod (10 ^ 位數)
If Not c_max.exists(root) Then
c_max(root) = n
c_min(root) = n
End If
If n > c_max(root) Then c_max(root) = n
If n < c_min(root) Then c_min(root) = n
Next
For Each root In c_max
c_max(root) = root & "(" & c_min(root) & "-" & c_max(root) & ")"
Next