有如下VB程序段:
k=3:sum=0:j=0:c=0
For i=1 To Len(s)、
ch=Mid(s,i,1)
If ch >= ''0''And ch<= ''9'' Then
c=c * 10+Val(ch)
j=j+1
Else
If j=k Then sum=sum+c
j=0:c=0
End If
Next i
字符串s为''ab300cde2022fg002h'' 时,执行该程序段后,sum的值为( )
300
302
504
2324