Codeforces Round 317 AimFund Thanks-Round (Div. 1) B. Minimization
- Time : O(nlogn+(n%k)∗(k−(n%k)))
- Space : O((n%k)∗(k−(n%k)))
c++
1 |
|