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 1569. Networking the “Iset”

TO ADMINS
Posted by LX&R Bacherikov [KNU] 29 Nov 2007 18:25
The tests are weak!
I submitted simple BFS using adjacency matrix and got WA#8.
But my friend used adjacency list and got AC with the same algorithm.
So, the result depends on the order of edges in the input.
Admins, please, add some tests to fix this problem.

P.S. There is O(nm) correct solution.