Hello everyone, I need help please. ↵
For given problem: https://codeforces.me/problemset/problem/1574/C↵
my submission: https://codeforces.me/contest/1574/submission/130212274↵
My code is giving right answer but on test case 6, it is showing TLE, which it shouldn't as I just used around 2nlogn+5n operations, which I think shouldn't cause problem. Also, I doubt that whether TLE is because of sorting of vector <long long>, or maybe sorting of vector<pair<long long,int>>, I don't know , please tell me something.
For given problem: https://codeforces.me/problemset/problem/1574/C↵
my submission: https://codeforces.me/contest/1574/submission/130212274↵
My code is giving right answer but on test case 6, it is showing TLE, which it shouldn't as I just used around 2nlogn+5n operations, which I think shouldn't cause problem. Also, I doubt that whether TLE is because of sorting of vector <long long>, or maybe sorting of vector<pair<long long,int>>, I don't know , please tell me something.