注意:此页面搜索的是所有试题
下面程序的时间复杂性的量级为( )。
int i=0,s1=,s2=0;
while(i++<>< span="">)
{if (i%2) s1+=i;
else s2+=i;
}

A.O(1)

B.O(1bn)

C.O(n)

D.O(2n)

参考答案