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 1077. Travelling Tours

why WA#1?
Posted by ile 15 Jun 2010 03:03
I have no idea what's wrong...
I am using DFS (something like euler-cycle detection); checking for self-loop edges; output format is right, tho it returns little bit different for sample test:
3
3 1 2 4
4 1 2 4 3
3 2 4 3

Please, any ideas about wa#1?

oh, i forgot to add that i am doing dfs for every connected component separately!

Edited by author 15.06.2010 03:05
Re: why WA#1?
Posted by ile 17 Jun 2010 00:35
anyone please?
Re: why WA#1?
Posted by zhuaiyaa 28 Nov 2010 17:00
I did that too,my answer is completely the same as yours,and I WA on the 1st test too