Everything That Fits

The constraint line says n≤2⋅105n \le 2 \cdot 10^5 and the limit is one second. Take the USACO Guide's conservative figure of 10810^8 elementary operations per second.

candidate operation count at n=2⋅105n = 2 \cdot 10^5
O(n2)O(n^2) ?
O(nn)O(n \sqrt n) ?
O(nlog⁡n)O(n \log n) ?
O(nlog⁡2n)O(n \log^2 n) ?
O(nnlog⁡n)O(n \sqrt n \log n) ?

Select every complexity that fits inside the 10810^8 budget.

A

O(nn)O(n \sqrt n), about 8.9⋅1078.9 \cdot 10^7

B

O(nnlog⁡n)O(n \sqrt n \log n), about 1.6⋅1091.6 \cdot 10^9

C

O(nlog⁡n)O(n \log n), about 3.5⋅1063.5 \cdot 10^6

D

O(nlog⁡2n)O(n \log^2 n), about 6.2⋅1076.2 \cdot 10^7

E

O(n2)O(n^2), about 4⋅10104 \cdot 10^{10}