|
|
back to boardI solve it with BFS, but i still have Time Limit Exceeded. Posted by rafal 21 Mar 2003 20:18 Is there any other way to solve this problem, please help me, give me a tip. I got 'accepted' only changed 'integer' to 'longint'. Posted by Lin 22 Mar 2003 09:25 > Is there any other way to solve this problem, please help me, give me > a tip. Re: I got 'accepted' only changed 'integer' to 'longint'. BFS is O(N) and reading input is also O(N), so... |
|
|