Why my code TLE on test 13 in 475D

Правка en1, от LeoChan2022, 2023-11-03 03:23:09

Help! The time complexity of my code is $$$O(n\log^2V+q\log V),V=10^9$$$.

I found that there are too many "1" in the data, and I made a piece of data like that, but my code just run for 0.3s.

475D - CGCDSSQ

231047726

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский LeoChan2022 2023-11-03 03:23:09 268 Initial revision (published)