12、下面算法的时间复杂度为()。 x=100; y=100; while(y>0) if(x>100) {x=x-10; y--;} else x++;

A.O(n) B.O(100) C.O(1) D.O(n*n)

时间:2023-03-02 10:26:22

相似题目