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 1254. Die Hard

why my modified BFS is wrong
Posted by csctcycle 15 Dec 2015 17:39
I define the distance between diagonal block as sqrt(2) and others as 1.
Then I use bfs to solve this problem but wa in #4
I don't know the reason.please help