QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#231290#7637. Exactly Three Neighborsucup-team253#AC ✓493ms25612kbC++205.2kb2023-10-29 06:13:272023-10-29 06:13:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 9864kb

input:

2 3

output:

3 1
#
#
.

result:

ok good solution

Test #2:

score: 0
Accepted
time: 2ms
memory: 7656kb

input:

1 1

output:

-1 -1

result:

ok no solution

Test #3:

score: 0
Accepted
time: 0ms
memory: 9812kb

input:

3 4

output:

4 4
####
##..
####
..##

result:

ok good solution

Test #4:

score: 0
Accepted
time: 10ms
memory: 10100kb

input:

3 5

output:

10 1
#
#
.
#
#
.
#
#
.
.

result:

ok good solution

Test #5:

score: 0
Accepted
time: 3ms
memory: 9888kb

input:

4 5

output:

5 5
###.#
#.###
####.
##.##
.####

result:

ok good solution

Test #6:

score: 0
Accepted
time: 2ms
memory: 9716kb

input:

7 10

output:

5 4
####
##..
####
..##
..##

result:

ok good solution

Test #7:

score: 0
Accepted
time: 0ms
memory: 9916kb

input:

5 7

output:

7 6
######
####..
#..###
#..###
####..
######
....##

result:

ok good solution

Test #8:

score: 0
Accepted
time: 493ms
memory: 25612kb

input:

7 9

output:

6 18
###.####.####.##.#
#.####.####.####.#
#.##.####.####.###
####.##.####.####.
##.####.##.####.##
.####.####.##.####

result:

ok good solution

Test #9:

score: 0
Accepted
time: 2ms
memory: 7720kb

input:

0 1

output:

1 1
.

result:

ok good solution

Test #10:

score: 0
Accepted
time: 2ms
memory: 9868kb

input:

1 2

output:

4 1
#
#
.
.

result:

ok good solution

Test #11:

score: 0
Accepted
time: 0ms
memory: 9744kb

input:

1 3

output:

6 1
#
#
.
.
.
.

result:

ok good solution

Test #12:

score: 0
Accepted
time: 2ms
memory: 9800kb

input:

1 4

output:

8 1
#
#
.
.
.
.
.
.

result:

ok good solution

Test #13:

score: 0
Accepted
time: 3ms
memory: 9764kb

input:

1 5

output:

10 1
#
#
.
.
.
.
.
.
.
.

result:

ok good solution

Test #14:

score: 0
Accepted
time: 3ms
memory: 9968kb

input:

1 6

output:

12 1
#
#
.
.
.
.
.
.
.
.
.
.

result:

ok good solution

Test #15:

score: 0
Accepted
time: 3ms
memory: 11944kb

input:

1 7

output:

14 1
#
#
.
.
.
.
.
.
.
.
.
.
.
.

result:

ok good solution

Test #16:

score: 0
Accepted
time: 8ms
memory: 9952kb

input:

1 8

output:

16 1
#
#
.
.
.
.
.
.
.
.
.
.
.
.
.
.

result:

ok good solution

Test #17:

score: 0
Accepted
time: 11ms
memory: 14216kb

input:

1 9

output:

18 1
#
#
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

result:

ok good solution

Test #18:

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

input:

1 10

output:

20 1
#
#
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

result:

ok good solution

Test #19:

score: 0
Accepted
time: 0ms
memory: 9868kb

input:

2 5

output:

5 1
#
#
.
.
.

result:

ok good solution

Test #20:

score: 0
Accepted
time: 3ms
memory: 9776kb

input:

2 7

output:

7 1
#
#
.
.
.
.
.

result:

ok good solution

Test #21:

score: 0
Accepted
time: 2ms
memory: 9836kb

input:

2 9

output:

9 1
#
#
.
.
.
.
.
.
.

result:

ok good solution

Test #22:

score: 0
Accepted
time: 32ms
memory: 10964kb

input:

3 7

output:

10 14
#########.##.#
#########.##.#
........######
........##..##
........##..##
........##..##
........##..##
........##..##
........##..##
........######

result:

ok good solution

Test #23:

score: 0
Accepted
time: 3ms
memory: 9812kb

input:

3 8

output:

2 16
##.##.##........
##.##.##........

result:

ok good solution

Test #24:

score: 0
Accepted
time: 0ms
memory: 9900kb

input:

3 10

output:

2 20
##.##.##............
##.##.##............

result:

ok good solution

Test #25:

score: 0
Accepted
time: 3ms
memory: 11896kb

input:

4 7

output:

7 1
#
#
.
#
#
.
.

result:

ok good solution

Test #26:

score: 0
Accepted
time: 133ms
memory: 14092kb

input:

4 9

output:

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

result:

ok good solution

Test #27:

score: 0
Accepted
time: 2ms
memory: 7732kb

input:

5 6

output:

-1 -1

result:

ok no solution

Test #28:

score: 0
Accepted
time: 4ms
memory: 9812kb

input:

5 8

output:

8 4
####
##..
####
..##
..##
..##
..##
..##

result:

ok good solution

Test #29:

score: 0
Accepted
time: 149ms
memory: 13040kb

input:

5 9

output:

10 9
####.##.#
####.##.#
...######
...##..##
...##..##
...##..##
...##..##
...##..##
...##..##
...######

result:

ok good solution

Test #30:

score: 0
Accepted
time: 2ms
memory: 7724kb

input:

6 7

output:

-1 -1

result:

ok no solution

Test #31:

score: 0
Accepted
time: 2ms
memory: 7688kb

input:

7 8

output:

-1 -1

result:

ok no solution

Test #32:

score: 0
Accepted
time: 2ms
memory: 7652kb

input:

8 9

output:

-1 -1

result:

ok no solution

Test #33:

score: 0
Accepted
time: 2ms
memory: 7724kb

input:

9 10

output:

-1 -1

result:

ok no solution

Extra Test:

score: 0
Extra Test Passed