https://ide.codingblocks.com/s/247562. in one of the testcases i am encountering tle. please tell the problem
Since constraints are large, use long long int instead of int. Go through this Hostel Visit- TLE