|
|
back to boardWA 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? Try this test: 4 4 1 2 1 2 2 3 3 4 3 1 2 3 Answer 1 2 3 |
|
|