s ="wantsfood"
t = Mid(s, Len(s), 1)
max=0
For i=Len(s)-1 To 1 Step-1
If Mid(s, i + 1, 1) >= Mid(s,i, 1) Then
t = Mid(s, i,1) + t
If Len(t) >= max Then max = Len(t): ans= t
Else
t = Mid(s, i, 1)
End If
Next i
执行该程序段后,变量ans和max的值分别是( )
微信扫码预览、分享更方便