varun.tinkle's blog

By varun.tinkle, 11 years ago, In English

In this question http://www.codechef.com/problems/KINGCON the gist of the question is to find the number of articulation points in the graph and multiply it by K. This is my solution http://ideone.com/mGdS8b . Please can anyone help me my mistake i am getting wrong answer.I have asked on codechef forum http://discuss.codechef.com/questions/33257/wa-in-kingcon and no one has helped me yet.

  • Vote: I like it
  • 0
  • Vote: I do not like it

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

Line 55 may result in underestimating low[x].

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

yes you are right but i modified my algorithm again still it is showing WA http://www.codechef.com/viewsolution/3144842

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

Thank you Fetetriste i found my bug and got it AC