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.