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.
Why my code TLE on test 13 in 475D
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.