Getting TLE , Help please

Правка en2, от Peace_789, 2020-05-05 20:45:04

Hey there ...

Today I was solving these problem click ... and I got tle verdict on TC 5. Here's a link to my solution click.

As much as I got , time complexity of my above solution is O(nlogn) where n can be upto 10^5.

So , I am not getting why it is giving tle verdict. So any help regarding this would be appreciated.

Thanks in advance ;)

UPD ==================: Was getting TLE due to ( endl ).

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Peace_789 2020-05-05 20:45:04 68 Tiny change: 'advance ;)' -> 'advance ;)\n\n**UPD** : Was getting TLE due to ( endl ).'
en1 Английский Peace_789 2020-05-05 18:35:33 485 Initial revision (published)