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

My program has WA#14
Posted by Zubyk Taras(Khmelnitsky) 28 May 2006 13:45
My program has WA#14. Breaking at me a mistake?
Who can help me? I shall be very grateful.
Give me the tests. Me the test, when the sea not closed interests. Somebody can answer this question? Please help. Here my tests with answers of my program:
1 Test:
9 7 1 1
........#
.########
.#.....#.
.#.#.#.#.
.#.....#.
.#######.
#........
The answer: 0
2 Test:
12 8 2 2
############
#...#......#
#...#.....##
###.#.#.####
#.#.#.#...##
#..##..##..#
#..........#
############
The answer: 2
3 Test:
6 6 3 4
######
#....#
#....#
#....#
#....#
######
The answer: 0
4 Test:
12 10 2 3
#######....#
#....##....#
#....##....#
#....##....#
#....##....#
#....##....#
#..........#
#....#..#.#.
############
#....###...#
The answer: 0
5 Test:
12 10 3 4
#######....#
#....##..#.#
#....##.#..#
#....##....#
#....##..#.#
#..#.##....#
#.#........#
#....#..#.#.
############
#....###...#
The answer: 5

Please help, please......
Thanks beforehand
Re: My program has WA#14
Posted by Denis Koshman 5 Aug 2008 16:37
Try such test:
18 14 12 3
........#........#
.#######..#######.
.#.....#..#.....#.
.#.#.#.#..#.#.#.#.
.#.....#..#.....#.
.#######..#######.
#........#........
........#........#
.#######..#######.
.#.....#..#.....#.
.#.#.#.#..#.#.#.#.
.#.....#..#.....#.
.#######..#######.
#........#........

Answer is 2
Re: My program has WA#14
Posted by Denis Koshman 5 Aug 2008 16:38
(oops, that helped me with WA4 :)