Help with 588E

Правка en1, от ordan, 2015-10-16 05:21:29

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

Problem: http://codeforces.net/contest/588/problem/E

Here's my code: http://codeforces.net/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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский ordan 2015-10-16 05:21:29 350 Initial revision (published)