Help needed

Revision en1, by TigranHakobyan, 2015-10-13 10:03:06

Hi, everyone. Could anyone help me with the solution to this problem ?

For every node of the graph the distance from itself to the farthest node is given. We need to restore the initial graph, or report that no such graph exists. Number of nodes are up to 100000 and all the numbers are between 1 and N-1.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English TigranHakobyan 2015-10-13 10:03:06 324 Initial revision for English translation
ru1 Russian TigranHakobyan 2015-10-12 23:32:13 324 Первая редакция (опубликовано)