Tle error in my code

my code is o(nlogn) time complexity still it is showing tle error

hi @varu please share your code using CB IDE

hi @varu a max heap should be used for this question.

now i have used maxi but still test 1 fails

@varu use long long int datatype