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 1272. Non-Yekaterinburg Subway

The O(n) algorithm
Posted by wangyin 19 Aug 2006 18:40
Use Union-find set...
Re: The O(n) algorithm
Posted by {SESC USU} Averin Artyom 12 Jun 2010 14:17
Or just DFS.