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 1671. Anansi's Cobweb

WA on #5 Why?
Posted by yuhc 6 Jun 2009 17:13
I don't think there are such threads as (2 Edges)
 1 2
 2 1

And although my program can solve that case, I still WA on test5. Can you help me and give me some advice? Thank you very much!
Re: WA on #5 Why?
Posted by yuhc 6 Jun 2009 20:09
Use union+Rank can AC....
Re: WA on #5 Why?
Posted by yuhc 6 Jun 2009 20:09
Use union+Rank can AC....
Re: WA on #5 Why?
Posted by Snayde [Shevchenko NUK] 19 Nov 2013 22:41
Try this test:
4 4
1 2
1 2
2 3
3 4
3
1 2 3
Answer 1 2 3