数字总个数=1482
5的出现次数=134
0的出现次数=103
'以上结果由下面VBA程序计算得到
Sub Macro1()
n = 0: m = 0: s = 0
For i = 1 To 265 * 2
x = Len(i)
n = n + x
For j = 1 To 3
w = Mid(i, j, 1)
If w = 5 Then
m = m + 1
End If
If w = 0 Then
s = s + 1
End If
Next j
Cells(1, 3) = s
Cells(1, 2) = m
Cells(1, 1) = n
Next i
End Sub
温馨提示:内容为网友见解,仅供参考