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

What output must be if the sea is not closed? Tell me answer for this test...
Posted by Alexey 4 May 2006 22:52
If the sea isn't closed (Can it be?) what should i output?
For example
9 7 1 1
........#
.########
.#.....#.
.#.#.#.#.
.#.....#.
.#######.
#........

Is the answer 0 or 2?
Thanks.

Edited by author 15.05.2006 18:15
Re: What output must be if the is not closed? Tell me answer for this test...
Posted by Burunduk1 4 May 2006 23:59
Answer is 0
Re: What output must be if the is not closed? Tell me answer for this test...
Posted by Alexey 6 May 2006 17:19

So, If the sea isn't closed, the answer must be 0?
Re: What output must be if the is not closed? Tell me answer for this test...
Posted by Denis Koshman 5 Aug 2008 16:40
No, it still may have islands. Just islands that are inside border land do not belong to any outer sea, but there can be others.