QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#229779#7637. Exactly Three Neighborsucup-team1828#AC ✓19ms412708kbC++141.4kb2023-10-28 16:53:262023-10-28 16:53:26

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 97384kb

input:

2 3

output:

1 6
##.##.

result:

ok good solution

Test #2:

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

input:

1 1

output:

-1 -1

result:

ok no solution

Test #3:

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

input:

3 4

output:

16 16
.####.##.##.####
##.##.##.####.##
##.##.####.####.
##.####.####.##.
####.####.##.##.
#.####.##.##.###
###.##.##.####.#
.##.##.####.####
.##.####.####.##
.####.####.##.##
##.####.##.##.##
####.##.##.####.
#.##.##.####.###
#.##.####.####.#
#.####.####.##.#
###.####.##.##.#

result:

ok good solution

Test #4:

score: 0
Accepted
time: 7ms
memory: 146440kb

input:

3 5

output:

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

result:

ok good solution

Test #5:

score: 0
Accepted
time: 7ms
memory: 187336kb

input:

4 5

output:

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

result:

ok good solution

Test #6:

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

input:

7 10

output:

40 40
.####.##.##.##.##.##.##.##.##.##.##.####
##.##.##.##.##.##.##.##.##.##.##.####.##
##.##.##.##.##.##.##.##.##.##.####.####.
##.##.##.##.##.##.##.##.##.####.####.##.
##.##.##.##.##.##.##.##.####.####.##.##.
##.##.##.##.##.##.##.####.####.##.##.##.
##.##.##.##.##.##.####.####.##.##.##.##.
##.##.#...

result:

ok good solution

Test #7:

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

input:

5 7

output:

28 28
.####.##.##.##.##.##.##.####
##.##.##.##.##.##.##.####.##
##.##.##.##.##.##.####.####.
##.##.##.##.##.####.####.##.
##.##.##.##.####.####.##.##.
##.##.##.####.####.##.##.##.
##.##.####.####.##.##.##.##.
##.####.####.##.##.##.##.##.
####.####.##.##.##.##.##.##.
#.####.##.##.##.##.##.##.###
###....

result:

ok good solution

Test #8:

score: 0
Accepted
time: 7ms
memory: 326596kb

input:

7 9

output:

18 18
.####.####.##.####
##.####.##.####.##
####.##.####.####.
#.##.####.####.###
#.####.####.####.#
###.####.####.##.#
.####.####.##.####
##.####.##.####.##
####.##.####.####.
#.##.####.####.###
#.####.####.####.#
###.####.####.##.#
.####.####.##.####
##.####.##.####.##
####.##.####.####.
#.##.####...

result:

ok good solution

Test #9:

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

input:

0 1

output:

1 1
.

result:

ok good solution

Test #10:

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

input:

1 2

output:

1 4
##..

result:

ok good solution

Test #11:

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

input:

1 3

output:

1 6
##....

result:

ok good solution

Test #12:

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

input:

1 4

output:

1 8
##......

result:

ok good solution

Test #13:

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

input:

1 5

output:

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

result:

ok good solution

Test #14:

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

input:

1 6

output:

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

result:

ok good solution

Test #15:

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

input:

1 7

output:

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

result:

ok good solution

Test #16:

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

input:

1 8

output:

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

result:

ok good solution

Test #17:

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

input:

1 9

output:

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

result:

ok good solution

Test #18:

score: 0
Accepted
time: 9ms
memory: 85152kb

input:

1 10

output:

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

result:

ok good solution

Test #19:

score: 0
Accepted
time: 9ms
memory: 105592kb

input:

2 5

output:

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

result:

ok good solution

Test #20:

score: 0
Accepted
time: 12ms
memory: 113776kb

input:

2 7

output:

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

result:

ok good solution

Test #21:

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

input:

2 9

output:

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

result:

ok good solution

Test #22:

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

input:

3 7

output:

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

result:

ok good solution

Test #23:

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

input:

3 8

output:

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

result:

ok good solution

Test #24:

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

input:

3 10

output:

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

result:

ok good solution

Test #25:

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

input:

4 7

output:

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

result:

ok good solution

Test #26:

score: 0
Accepted
time: 15ms
memory: 203688kb

input:

4 9

output:

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

result:

ok good solution

Test #27:

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

input:

5 6

output:

-1 -1

result:

ok no solution

Test #28:

score: 0
Accepted
time: 12ms
memory: 240828kb

input:

5 8

output:

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

result:

ok good solution

Test #29:

score: 0
Accepted
time: 7ms
memory: 244856kb

input:

5 9

output:

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

result:

ok good solution

Test #30:

score: 0
Accepted
time: 19ms
memory: 277608kb

input:

6 7

output:

-1 -1

result:

ok no solution

Test #31:

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

input:

7 8

output:

-1 -1

result:

ok no solution

Test #32:

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

input:

8 9

output:

-1 -1

result:

ok no solution

Test #33:

score: 0
Accepted
time: 7ms
memory: 412708kb

input:

9 10

output:

-1 -1

result:

ok no solution

Extra Test:

score: 0
Extra Test Passed