You are not logged in. Please login at www.codechef.com to post your questions!

×

Kingdom unity, time limit gets exceeded??

I tried to solve this problem using the technique mentioned in the editorial i.e, I found all the articulation points in the graph using dfs algorithm and multiplied it buy the cost k to get the final answer. But I am getting the error "Time Limit Exceeded".

This is my solution.

Anybody help me out resolving this.

This question is marked "community wiki".

asked 28 Feb '16, 02:44

arpit728's gravatar image

1★arpit728
6831562
accept rate: 10%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,650
×1,385
×1,197
×715
×693
×27
×9

question asked: 28 Feb '16, 02:44

question was seen: 695 times

last updated: 28 Feb '16, 02:44