Leftist_G's blog

By Leftist_G, history, 6 days ago, In English

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

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Leftist_G, history, 8 months ago, In English

Just like the title, I submitted two codes at 534F, and then they got RE on #55 and AC. But you can see that they only have difference on the last row (a comment //???).

What happened on them or judge?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it