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 1250. Sea Burial

I 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'.
Posted by Denis Koshman 5 Aug 2008 16:42
BFS is O(N) and reading input is also O(N), so...