ENG
RUS
Timus 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
1022
. Genealogical Tree
Help ! WA#2
Posted by
Nguyen Khac Tung
26 Oct 2010 10:57
Here's my solution :
- Input & reverse all the edges
- DFS from all vertexs
- If depth = N then output in reverse order
What's wrong w/ this one ????
Re: Help ! WA#2
Posted by
stupidjohn
22 Jan 2011 16:25
the graph may be not connected.
© 2000–2024
Timus Online Judge Team
. All rights reserved.