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 1016. Cube on the Walk

tjq(killer of zju) Is it right to ouput any path with minimal cost? [3] // Problem 1016. Cube on the Walk 6 Oct 2000 20:19
the output part states that:
"The only line of the output must contain the minimal sum
followed by the optimal route (one of possible routes with
minimal sum)",

but I got wrong answer! why?

my output for sample input is:
5 e2 e1 d1 d2 e2 e3

I think it's also right.
um I think so
Yes Right!
my AC program outputs "5 e2 e1 d1 d2 e2 e"  for sample test :)
5 e2 e1 d1 d2 d3 e3
is another correct answer for the sample input.