Why my 2053F with segment tree always MLE on test 4?

Revision en2, by Leftist_G, 2024-12-29 10:06:21

I solved this problem with segment tree, but when I submitted my solution, it told me "Memory limit exceeded on test 4". I calculated my static memory usage, it's far from 512MiB. So why?

My submission

Just now, I tried changing my solution to be the same as official solution (linear memory usage), and I got MLE again...

New submission

Tags 2053f, memory usage, memory limit excceded

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Leftist_G 2024-12-29 10:06:21 202
en1 English Leftist_G 2024-12-29 09:42:36 316 Initial revision (published)