Page 1 of 1
11267 - The Hire-a-Coder Business Model
Posted: Mon Sep 03, 2007 8:49 pm
by sclo
I keep getting WA for this problem.
I found that it is possible for cost to be zero, and the input doesn't say what to do about them.
What I do in this problem is to determine if graph is bipartite, and find the minimum spanning tree. It's not very difficult, yet I'm getting WA.
Posted: Mon Sep 03, 2007 8:51 pm
by Monsoon
but sometimes you can take more egdes not only those needed to form spanning tree
Posted: Mon Sep 03, 2007 8:56 pm
by sclo
Thanks, I missed that.
YEAS
Posted: Wed Jan 23, 2008 8:36 am
by tkchenhetian
I have got WA for a lot,Thanks!
Posted: Mon Mar 10, 2008 4:23 am
by asmaamagdi
but sometimes you can take more egdes not only those needed to form spanning tree
I couldn't get what u mean
Re: 11267 - The Hire-a-Coder Business Model
Posted: Sat Sep 12, 2009 1:13 pm
by george09
asmaamagdi wrote:but sometimes you can take more egdes not only those needed to form spanning tree
I couldn't get what u mean
THIS. Same here. Couldn't understand what he said.
Regards,
George
Pret travaux
Re: 11267 - The Hire-a-Coder Business Model
Posted: Wed Sep 30, 2009 10:31 pm
by calicratis19
but sometimes you can take more egdes not only those needed to form spanning tree
this means you can add edges which have not been used in the mst but have negative cost . u can add these negative cost to reduce the total cost of the mst.i hope you understand now. but i think you should have understood before if you have given proper effort

.
thank you.
Re: 11267 - The Hire-a-Coder Business Model
Posted: Fri Oct 02, 2009 5:18 pm
by Jehad Uddin
hello every one i got WA 2 times in this prob,pls help me, advanced thanks,
code removed got acc, silly mistake