The Diameter of the Empire

Sheldor's Empire forms a graph with cities as vertices and edges as roads. All the roads in his empire are of unit distance. He defines the diameter of the Empire as the maximum distance between two cities in his empire.

What is the diameter of his empire?

Input File: Link

Input Constraints and Details:

  • The empire contains of 100 cities.
  • Each line in the Input File contains two integers u u and v v . This refers to the fact that there is a road connecting u u and v v .


The answer is 16.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...