提示一下:
对n个数模8后,建一个类AInfo来保存.
Public Class AInfo
Public Count As Integer
Public Values As List(Of Integer)
End Class
然后用7个AInfo来存这些信息
Dim myInfos(6) As Ainfo
其中 myInfos(0)存模值为1,myInfos(6)存模值为7
将An分别模8存到对应的myInfos去
Dim m As Integer
For each [Value] As Integer In myInputs
m = [Value] Mod 8
If m > 0 Then
With MyInfos(m -1)
.Count+=1
.Values.Add([Value])
End With
End If
Next For