Nguyendinhbach_69's blog

By Nguyendinhbach_69, history, 12 months ago, In English

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
  • Vote: I like it
  • +2
  • Vote: I do not like it

»
12 months ago, hide # |
 
Vote: I like it +14 Vote: I do not like it

For pbds structures use x.swap(y) instead of swap(x, y)