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

Show all messages Hide all messages

Information about bridges is extra, isn't it? It isn't necessary to read it, as graph tonnels+bridges is connected.  It's need to count the number of components of the graph and the answer is number-1.
Is this all true???
Because using this algo I always have WA 14 :(
So do I! Please, someone tell me what's the test 14?

Edited by author 04.05.2006 22:49
I haven't overcome this problem yet :(. AlexF, do you think that our idea is wrong?
Yes!!! I got AC!! Our idea is right! )) I found the test which my program coudn't pass. Here it is:
9 3 6
6 8
5 8
2 1
1 3
2 3
3 4
7 4
9 4
8 9
Right answer is 5.
If You want, KAV, you can give me your mail and I'll send to you my solution. ;)
Edited by author 05.05.2006 17:21

Edited by author 05.05.2006 18:10

Edited by author 05.05.2006 18:10