Comments

Ohh I see, got it now, thanks!

I don't get it. According to the first sample case, staying at the same square is also considered as a move, so can't the 2 paths from (1,1) to (2,3) be (1,1),(1,1),(2,3) and (1,1),(2,3),(2,3) ? Or are these 2 paths considered the same?

+15

The queue's such a pain, my submission hasn't been judged even after almost 8 mins now :(

+4

Will it be rated?