Блог пользователя p-space

Автор p-space, 10 лет назад, По-английски

i was thinking this problem for hours, and i do not get how to solve in time.

the link:

https://icpcarchive.ecs.baylor.edu/index.php?option=onlinejudge&page=show_problem&problem=4330

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
10 лет назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

I hope this will be useful rope

»
10 лет назад, # |
  Проголосовать: нравится +4 Проголосовать: не нравится

There is simple offline solution. You have to process queries in backward order. It is hard for me to explain in english. code.

»
10 лет назад, # |
Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

I have just solved this problem just right before I see this post LOL :D

During the contest this problem was solved by only one team :D, nobody knew about the rope implementation built within STL!

Here is my code:

http://ideone.com/jNfg1h