Codeforces Round #809 (Div. 2) D2. Chopping Carrots (Hard Version)
- Time : O(nsqrt(n))
- Space : O(max(Ai))
c++
1 |
|