This submission gets Time limit Exceeded with this generated input making the complexity reach $$$O(N^2*logN)$$$:
code
But then I obviously optimized my code and made it unhackable unhackable submission
BledDest please add the hack test mentioned above in the tests of the problem
xplain your approach boi
Sure, added the test but with 2e5 instead of 1e5. Won't be rejudging any submissions, but all later submissions will be judged on that test.
thanks a lot