下列程序段的时间复杂度为( )。 i=0,s=0; while (s

下列程序段的时间复杂度为( )。 i=0,s=0; while (s

A.O(n/2)

B.O(n/3)

C.O(n)

D.O(n2)

正确答案是A