Блог пользователя DP99

Автор DP99, история, 8 лет назад, По-английски

Problem : http://www.spoj.com/problems/POLQUERY/

I am getting WA with this code http://ideone.com/ljHSna

Pls help me by pointing out the error. >.<

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

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

Whats the meaning of lca when u have a graph, not a tree?

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

I remember solving this problem. My solution was getting WA, I got the test data for the original problem from its contest and my solution produced the same output.