NEED HELP IN CODEFORCES GRAPH PROBLEM

Revision en3, by javacoder1, 2015-11-10 20:26:14

Hey i was trying to solve King's Path on codeforces http://codeforces.net/problemset/problem/242/C but i am getting wrong answer on test 10; my code: http://codeforces.net/contest/242/submission/14186492

Can anyone point my mistake? Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English javacoder1 2015-11-10 20:26:14 0 (published)
en2 English javacoder1 2015-11-10 20:19:17 6 Tiny change: 'answer on case 10;\nmy c' -> 'answer on test 10;\nmy c' (saved to drafts)
en1 English javacoder1 2015-11-10 18:32:12 285 Initial revision (published)