Codeforces Round 894 (Div. 3) F. Magic Will Save the World
- Time : O(n+log1e9∗log(sum(A)))
- Space : O(sum(A))
c++
1 |
|