PoisonousPython's blog

By PoisonousPython, history, 8 years ago, In English

Hi! First off, I just wanted to ask if this problem is solvable using segment trees: http://codeforces.net/problemset/problem/52/C

I wrote a solution which uses segment trees but it gives me TLE on test 8. Can you please give me a hint at least? That would be quite helpful.

Here is the code: http://codeforces.net/contest/52/submission/24460216 Thanks!

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it