Tparsa's blog

By Tparsa, 12 years ago, In English

Hello !

I want to solve this problem but got WA on test 45

I use DFS and this is my code : http://paste.ubuntu.com/7587811/

what's Wrong ? please Help me!

Thank you!

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
12 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

Number of moves it has taken you to get to a certain square matters, but you don't take it into account.