Hey i am getting wrong answer on amazing maze http://www.spoj.com/problems/DCEPC701/
my code http://ideone.com/B62iqc I am unable to find the error.Hope someone help me.
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
2 | maomao90 | 163 |
4 | atcoder_official | 161 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | nor | 153 |
9 | Dominater069 | 153 |
Hey i am getting wrong answer on amazing maze http://www.spoj.com/problems/DCEPC701/
my code http://ideone.com/B62iqc I am unable to find the error.Hope someone help me.
Название |
---|
http://ideone.com/yOiFFG
I think, answer shouldn't be 0 there
UPD: changed this:
to this:
and got AC.
can i get your AC CODE. Also plaese explain in brief the changes?
http://ideone.com/mcT8Kx
Let's watch on example
..#..
0 0 100 0 0
When your code comes to (0,1) temp.dist is equal to 1, so u can't go to (0,2) in your code, because temp.dist+1 < arr[nx][ny].
But you have to go to it, when time will be equal to 100, so we have to push mp(arr[nx][ny],nx,ny) in that case.
Thanks for explaining me.