Codeforces Round 376 (Div. 2) F. Video Cards
- Time : O(nlogn+MAXN∗√MAXN)
- Space : O(MAXN)
c++
1 |
|