DP99's blog

By DP99, history, 9 years ago, In English

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. >.<

  • Vote: I like it
  • -5
  • Vote: I do not like it

| Write comment?
»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    9 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    well it is not direct lca

    u have to lca in a differnet graph

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

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.