A graph problem

Posted by copperhead on Stack Overflow See other posts from Stack Overflow or by copperhead
Published on 2010-06-11T05:57:04Z Indexed on 2010/06/11 6:03 UTC
Read the original article Hit count: 282

Filed under:
|
|

I am struggling to solve the following problem

http://uva.onlinejudge.org/external/1/193.html

However Im not able to get a fast solution.

And as seen by the times of others, there should be a solution of maximum n^2 complexity

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problemid=129&page=problem_stats

Can I get some help?

© Stack Overflow or respective owner

Related posts about c++

Related posts about algorithm