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 1527. Bad Roads

If you have WA @ 10
Posted by 198808xc 10 Oct 2010 09:51
This test could help you.

5 8 1 5
2 200
1 2 1 100 99
2 3 0 0 0
3 2 0 0 0
2 4 0 0 0
4 2 0 0 0
3 4 0 0 0
4 3 0 0 0
4 5 1 100 99

You can draw this graph on paper, and the answer will be obvious. I have this output:
99
3
1 4 8

Good luck.
Re: If you have WA @ 10
Posted by Walker 17 Aug 2021 06:31
I got RE9.I got WA10 after use your test.So interesting.QAQ
Sorry my bad English.

Edited by author 17.08.2021 06:35
Re: If you have WA @ 10
Posted by TruMen [Lviv NU] 18 Dec 2021 18:57
In my case WA 10 was caused by one directional roads, not <->.
"In a country, there is a number of cities connected by unidirectional roads"