ordan's blog

By ordan, history, 9 years ago, In English

Could someone give me a tip on why my code is getting "Memory limit exceeded"?

Problem: http://mirror.codeforces.com/contest/588/problem/E

Here's my code: http://mirror.codeforces.com/contest/588/submission/13655996

I tried to make a LCA table of sets (with size less than 10) and for each query I merge the ranges getting the 'a' minimums.

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

»
9 years ago, # |
  Vote: I like it +2 Vote: I do not like it

:/