I was solving last question (1433G - Reducing Delivery Cost) or last Div3 round, and I got TLE at test case 3
Here is a link to TLE solution by me :
Here is link to ACCEPTED solution by icecuber :
I even followed his code, so as to make different changes and make our code similar, but still all I have is TLE. Please HELP!!