ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1041. Nikifor

Test #9
Posted by ftc 21 Jan 2007 13:11
I suppose that test #9 isn't correct, because
we can use Kruskal's algo if we'll consider
weights of vectors as wi - 1 / ((INF) ^ ni), where wi is weight of i-th vector ans ni is its number.

It's easy to see that in this case Kruskal's algo gives us an optimal solution.

2Admins: Can you please check the test?
Re: Test #9
Posted by caoqinxiang 23 Feb 2007 08:51
i get WA#9 too. i don't know what is wrong is my programme.
Re: Test #9
Posted by 任你行 21 Mar 2007 13:30
I am also get wa on Test #9,can anybody give me any hints?
thx

Edited by author 22.03.2007 13:52