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

Show all messages Hide all messages


a1 h1 0 0 10 0 0 10
i think the answer is :
0 a1 b1 b2 a2 a1 b1 c1 d1 e1 f1 g1 h1
i think you are wrong.

My program tell that the minimal path is 20!
I don't think so! eXceibot 5 Aug 2008 16:03
My solution got AC. And it's answer for this input is:
0 a1 a2 b2 c2 c1 b1 b2 c2 d2 d1 c1 c2 d2 e2 e1 d1 d2 e2 f2 f1 e1 e2 f2 g2 g1 f1 f2 g2 h2 h1
i got ac, my answer is
0 a1 a2 b2 b1 a1 a2 a3 b3 b2 a2 a3 a4 b4 b3 a3 a4 a5 b5 b4 a4 a5 a6 b6 b5 a5 a6 a7 b7 b6 a6 a7 b7 b8 a8 a7 b7 b8 a8 a7 b7 c7 c8 b8 b7 c7 d7 d8 c8 c7 d7 e7 e8 d8 d7 e7 f7 f8 e8 e7 f7 g7 g8 f8 f7 g7 h7 h8 g8 g7 h7 h8 g8 g7 g6 h6 h7 g7 g6 g5 h5 h6 g6 g5 g4 h4 h5 g5 g4 g3 h3 h4 g4 g3 g2 h2 h3 g3 g2 g1 h1
my answer is:
0 a1 a2 b2 c2 c1 b1 b2 c2 d2 d1 c1 c2 d2 e2 e1 d1 d2 e2 f2 f1 e1 e2 f2 g2 g1 f1 f2 g2 h2 h1 g1 g2 h2 h1
my ac answer is : 0 a1 a2 b2 c2 c1 b1 b2 c2 d2 d1 c1 c2 d2 e2 e1 d1 d2 e2 f2 f1 e1 e2 f2 g2 g1 f1 f2 g2 h2 h1 g1 g2 h2 h1
I got you all beat, my answer is:

0 a1 b1 b2 a2 a1 b1 b2 b3 a3 a2 b2 b3 b4 a4 a3 b3 b4 b5 a5 a4 b4 b5 b6 a6 a5 b5 b6 b7 a7 a6 b6 b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