快速求$\log_2 x$ 1.cmath log2?很慢2.预处理$O(n+1)?$很慢3.枚举$while(i<n)i<<=1?O(log_2n)$很慢4.二分+<< $O(\log_2\log_2n)$很慢5.
確定! 回上一頁