Comments

I used n^2 only to count the number of inversions in the greedy array, since the constraints allowed it https://codeforces.me/contest/2130/submission/331813442

But this can easily be replaced O(nlogn)

weak constraints C,D div2

why n^2

On hugopm → Codeforces Round 1039 (Div. 2), 15 months ago
+8

no test for whether a number is strictly greater than c..... ;(