I am Stuck at Hostel Visit problem

I am stuck at Hostel Visit, Got my test case 1 cleared but test case 1 is not being passed…


Help me out please…

I mean test case 0* is not being passed…!!

@saikiran3691 The constraints are large. So change your data types to long long int. Change the data type of your priority queue to long long int.