|
|
back to boardwhy WA#1? Posted by ile 15 Jun 2010 03:03 I have no idea what's wrong... I am using DFS (something like euler-cycle detection); checking for self-loop edges; output format is right, tho it returns little bit different for sample test: 3 3 1 2 4 4 1 2 4 3 3 2 4 3 Please, any ideas about wa#1? oh, i forgot to add that i am doing dfs for every connected component separately! Edited by author 15.06.2010 03:05 Re: why WA#1? Posted by ile 17 Jun 2010 00:35 anyone please? Re: why WA#1? I did that too,my answer is completely the same as yours,and I WA on the 1st test too |
|
|