doubt about std::swap for gnu pbds

Правка en2, от Nguyendinhbach_69, 2025-04-19 15:06:55

I am solving this problem and get a TLE although i do an O(nlogn^2) solution with time limit = 2s. Is this tle caused by ordered_set swap or is something in my code wrong???

My code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Nguyendinhbach_69 2025-04-19 15:06:55 6 Tiny change: 'm solving https:[this prob' -> 'm solving [this prob'
en1 Английский Nguyendinhbach_69 2025-04-19 15:06:39 1587 Initial revision (published)