QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#502908#8659. Sheba’s Amoebasxiaowuc1AC ✓49ms40508kbJava81.5kb2024-08-03 15:27:412024-08-03 15:27:42

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 37ms
memory: 38232kb

input:

12 12
.##########.
#..........#
#..#...##..#
#.##..#..#.#
#......#.#.#
#....#..#..#
#...#.#....#
#..#...#...#
.#..#.#....#
#....#.....#
#.........#.
.#########..

output:

4

result:

ok single line: '4'

Test #2:

score: 0
Accepted
time: 37ms
memory: 37904kb

input:

12 10
.#####....
#.....#...
#..#..#...
#.#.#.#...
#..#..#...
.#...#....
..###.....
......#...
.##..#.#..
#..#..#...
.##.......
..........

output:

4

result:

ok single line: '4'

Test #3:

score: 0
Accepted
time: 25ms
memory: 37340kb

input:

6 6
.####.
#....#
#....#
#....#
#....#
.####.

output:

1

result:

ok single line: '1'

Test #4:

score: 0
Accepted
time: 39ms
memory: 37148kb

input:

3 3
.#.
#.#
.#.

output:

1

result:

ok single line: '1'

Test #5:

score: 0
Accepted
time: 36ms
memory: 38520kb

input:

10 10
.#...#....
#.#.#.#...
.#...#..#.
...#...#.#
..#.#...#.
...#..#...
.#...#.#..
#.#...#...
.#........
..........

output:

6

result:

ok single line: '6'

Test #6:

score: 0
Accepted
time: 40ms
memory: 37660kb

input:

3 10
.##...###.
#..#.#...#
.##...###.

output:

2

result:

ok single line: '2'

Test #7:

score: 0
Accepted
time: 33ms
memory: 36964kb

input:

11 3
.#.
#.#
.#.
...
.#.
#.#
.#.
...
.#.
#.#
.#.

output:

3

result:

ok single line: '3'

Test #8:

score: 0
Accepted
time: 25ms
memory: 39704kb

input:

20 20
.##.#########....#..
#..#.........####.#.
#.....####.........#
.#####....#..######.
..........#.#.......
.##...####..#..####.
#..#.#......#.#....#
.#.#.#..####..#..##.
..#...##.....#..#...
....#....####..#....
.###.####.....#.....
#............#..###.
#...######...#.#...#
#..#......##..#....#
...

output:

5

result:

ok single line: '5'

Test #9:

score: 0
Accepted
time: 41ms
memory: 39688kb

input:

80 80
.##############################################################################.
#..............................................................................#
#..##########################################################################..#
#.#...................................................

output:

20

result:

ok single line: '20'

Test #10:

score: 0
Accepted
time: 44ms
memory: 39516kb

input:

60 80
..#####....###########.......##..#####.......#######......#############.........
.#.....#..#...........##....#..##.....#..#..#.......#....#.............#........
#...###..#..##...#......#....#......#..##.#.#.......#.....####........#.........
#..#....#..#..#.#.#..###..##..##...#.#....#.#.........

output:

10

result:

ok single line: '10'

Test #11:

score: 0
Accepted
time: 49ms
memory: 38504kb

input:

50 50
.....#########################################....
.####.........................................#...
#......#######......########...................##.
#.....#.......###..#........#########............#
.#....#..........#.#.................######......#
..#....#####.....#..###########...........

output:

1

result:

ok single line: '1'

Test #12:

score: 0
Accepted
time: 37ms
memory: 39024kb

input:

80 30
.#...#...#...#...#...#...#....
#.#.#.#.#.#.#.#.#.#.#.#.#.#...
.#...#...#...#...#...#...#....
...#...#...#...#...#...#...#..
..#.#.#.#.#.#.#.#.#.#.#.#.#.#.
...#...#...#...#...#...#...#..
.#...#...#...#...#...#...#....
#.#.#.#.#.#.#.#.#.#.#.#.#.#...
.#...#...#...#...#...#...#....
...#...#...#......

output:

96

result:

ok single line: '96'

Test #13:

score: 0
Accepted
time: 42ms
memory: 38416kb

input:

100 100
................................................#########...........................................
.........................##....................#.........#..........................................
........................#..#.................##..........#.................#..........###....

output:

11

result:

ok single line: '11'

Test #14:

score: 0
Accepted
time: 38ms
memory: 38568kb

input:

100 100
....................................................................................................
...............................##.........##.....##.....###########.................................
.....#######..................#..#.......#..#...#..#...#...........#.........................

output:

25

result:

ok single line: '25'

Test #15:

score: 0
Accepted
time: 41ms
memory: 39728kb

input:

50 50
.##.#.#.#.#.#.#.#.#.#.....#.....#.....#.....#.....
#..#.#.#.#.#.#.#.#.#.#...#.#...#.#...#.#...#.#....
.#...................#..#...#.#...#.#...#.#...#...
#...##.#.#.#.#.#.#..#..#.....#..#..#..#..#.....#..
.#.#..#.#.#.#.#.#.#..#..#......#.#...#.#......#...
#...#.............#.#....#...#..#.....#...

output:

19

result:

ok single line: '19'

Test #16:

score: 0
Accepted
time: 46ms
memory: 37836kb

input:

100 100
.######.....#####....###################......#############..............################...........
#......#...#.....#..#...................#....#.............#####........#................####.......
#......#...#....#...#..........######...#....#..#...............##.....#.......####..........

output:

40

result:

ok single line: '40'

Test #17:

score: 0
Accepted
time: 27ms
memory: 37132kb

input:

1 1
.

output:

0

result:

ok single line: '0'

Test #18:

score: 0
Accepted
time: 31ms
memory: 38452kb

input:

2 2
..
..

output:

0

result:

ok single line: '0'

Test #19:

score: 0
Accepted
time: 30ms
memory: 37092kb

input:

100 100
....................................................................................................
....................................................................................................
.............................................................................................

output:

0

result:

ok single line: '0'

Test #20:

score: 0
Accepted
time: 28ms
memory: 37136kb

input:

1 100
....................................................................................................

output:

0

result:

ok single line: '0'

Test #21:

score: 0
Accepted
time: 35ms
memory: 36940kb

input:

100 1
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

output:

0

result:

ok single line: '0'

Test #22:

score: 0
Accepted
time: 39ms
memory: 38244kb

input:

3 100
.#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#..
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.
.#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#.....

output:

25

result:

ok single line: '25'

Test #23:

score: 0
Accepted
time: 36ms
memory: 38592kb

input:

6 6
.####.
#....#
#.##.#
#..#.#
#....#
.####.

output:

2

result:

ok single line: '2'

Test #24:

score: 0
Accepted
time: 35ms
memory: 36740kb

input:

10 10
.#...#....
#.#.#.#...
.#...#..#.
...#...#.#
..#.#...#.
...#..#...
.#...#.#..
#.#...#...
.#..#...#.
...##...##

output:

8

result:

ok single line: '8'

Test #25:

score: 0
Accepted
time: 36ms
memory: 40508kb

input:

20 20
.##.#########....#..
#..#.........####.#.
#.....####.........#
.#####....#..######.
..........#.#.......
.##...####..#..####.
#..#.#......#.#....#
.#.#.#..####..#..##.
..#...##.....#..#...
....#....####..#....
.###.####.....#.....
#............#..###.
#...######...#.#...#
#..#......##..#..#.#
...

output:

7

result:

ok single line: '7'

Test #26:

score: 0
Accepted
time: 41ms
memory: 38904kb

input:

60 80
..#####....###########.......##..#####.......#######......#############..##.#...
.#.....#..#...........##....#..##.....#..#..#.......#....#.............#..#.##..
#...###..#..##...#......#....#......#..##.#.#..##...#.....####........#.........
#..#....#..#..#.#.#..###..##..##...#.#....#.#...#.....

output:

52

result:

ok single line: '52'

Test #27:

score: 0
Accepted
time: 36ms
memory: 37348kb

input:

50 50
.....#########################################....
.####.........................................#...
#......#######......########................#..##.
#.....#.......###..#........#########.......##...#
.#....#..........#.#.................######......#
..#....#####.....#..###########...........

output:

12

result:

ok single line: '12'