Getting Runtime Error in SPOJ K-th Number (MKTHNUM) with Wavelet Tree

Revision en1, by Polyn0mial, 2022-12-14 21:33:56

I've been trying to solve this problem with wavelet tree, and optimize by discrete the values from $$$[-10^9, 10^9]$$$ to $$$[0, N - 1]$$$. I keep getting runtime error.

Code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Polyn0mial 2022-12-14 21:33:56 3172 Initial revision (published)