Ra1nWarden / Online-Judges

My solutions to various online judge problems.
0 stars 0 forks source link

670 WA #19

Open Ra1nWarden opened 9 years ago

Ra1nWarden commented 9 years ago

Maximum cardinality matching on bipartite graph. Source set to 0 and sink m+n+1, add edges from source to all points in the path and from interests to sink. Between path points and interest points, add an edge when the distance of travel by the dog is no larger than twice the length to the next point on the path. WA: not sure why...