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 1022. Genealogical Tree

topologic sort
Posted by ITStepDnepr 11 Dec 2006 17:45
i used topologic sort, described here -> http://en.wikipedia.org/wiki/Topological_sorting, but got wa on second test. (i believe i implemented algo correctly.)
maybe there is something important, that they did not mention?

Edited by author 11.12.2006 17:46
Re: topologic sort
Posted by Nechaev Ilya (Rybinsk SAAT) 11 Dec 2006 19:07
This algorithm is right, check your program again.

Edited by author 11.12.2006 19:07