Comments

So there are 7 codeforces problems and an atcoder problem?

$$$I$$$ $$$don't$$$ $$$know$$$ $$$how$$$ $$$to$$$ $$$do$$$

but the time complexity for problem D is $$$O(n^2 log n)$$$:(