上午匆忙看题,没细想,回答错误。仔细想想这题还蛮复杂,但有规律可循。借Excel平台用VBA编一小段程序,运行结果最后剩下的一个数是1598,有兴趣者不妨一试,程序如下:
Dim a(1993) As Integer
Dim b(1993) As Integer
Dim c(1993) As Integer
Dim i, j, k, x As Integer
Dim BLineCount As Range
For i = 1 To 1993
a(i) = ActiveSheet.Cells(i, 1).Value
Next i
For j = 1 To 1993 Step 3
b(j) = a(j)
Sheets(1).Cells(j, 1).Value = ""
Next j
Set BLineCount = Worksheets(1).Range("A:A")
x = Application.WorksheetFunction.Count(BLineCount)
Do
Do
For i = 1 To 1993
If ActiveSheet.Cells(i, 1).Value <> "" And ActiveSheet.Cells(i, 1).Value <> 0 Then
k = k + 1
c(k) = ActiveSheet.Cells(i, 1).Value
Else
End If
Next i
Loop Until k = x
Worksheets(1).Range("A:A").Delete
For i = 1 To k
ActiveSheet.Cells(i, 1).Value = c(i)
Next i
For i = 1 To k Step 3
Sheets(1).Cells(i, 1).Value = ""
Next i
Set BLineCount = Worksheets(1).Range("A:A")
x = Application.WorksheetFunction.Count(BLineCount)
k = 0
Loop Until x = 1