tom's blog

By tom, 11 years ago, In English

Problem for you for today's evening:

You are given DAG with N <  = 1000 vertexes and M <  = 10000 edges. Vertex 0 is starting vertex and vertex 1 is goal vertex. Set weights to edges from {1, 2} in that way that all paths from start to goal will have the same distance or print "NO" if it's not possible.

  • Vote: I like it
  • +9
  • Vote: I do not like it

»
11 years ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

Can I submit this problem or download tests somewhere? I have an idea, but I can't prove it.