单项选择题

下面这个程序段的时间复杂度是( )。 for(i=1; i<n; i++) {y=y+1; for(J=0; J<=(2*n);J++) x++;}

A.O(log2
B.O(
C.O(nlog2
D.O(n2)