Why my code TLE on test 13 in 475D

Revision en1, by 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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English LeoChan2022 2023-11-03 03:23:09 268 Initial revision (published)