QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#740900#9478. Shift PuzzlejlgxyTL 0ms3796kbC++143.8kb2024-11-13 12:11:122024-11-13 12:11:13

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3796kb

input:

3
.#.
#.#
.#.
#.#
...
#.#

output:

Yes
24
1 3
2 3
1 3
1 3
2 3
2 3
1 3
2 3
2 3
1 3
1 3
2 3
2 1
1 1
1 1
2 1
2 1
1 1
2 1
2 1
1 1
1 1
2 1
1 1

result:

ok AC

Test #2:

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

input:

3
.#.
#.#
.#.
.#.
#.#
.#.

output:

Yes
0

result:

ok AC

Test #3:

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

input:

13
.............
....#####....
......#......
......#......
......#......
......#......
.............
....#...#....
....#...#....
....#...#....
....#...#....
.....###.....
.............
....####.....
....#...#....
....####.....
....#........
....#........
.............
.....###.....
....#...#....
......

output:

No

result:

ok AC

Test #4:

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

input:

3
#.#
#.#
###
#.#
.#.
###

output:

No

result:

ok AC

Test #5:

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

input:

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

output:

No

result:

ok AC

Test #6:

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

input:

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

output:

No

result:

ok AC

Test #7:

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

input:

2
..
..
..
..

output:

Yes
0

result:

ok AC

Test #8:

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

input:

3
.##
##.
.#.
##.
..#
.##

output:

Yes
24
1 3
2 3
2 3
1 3
1 3
2 3
1 2
1 2
2 2
1 2
2 2
2 2
2 1
2 1
1 1
1 1
2 1
1 1
2 2
1 2
2 2
2 2
1 2
1 2

result:

ok AC

Test #9:

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

input:

3
...
#..
..#
...
#..
#..

output:

Yes
6
2 1
1 3
2 1
2 1
1 3
1 3

result:

ok AC

Test #10:

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

input:

3
..#
.##
###
#.#
.##
#.#

output:

Yes
18
2 2
1 1
2 2
2 2
1 1
1 1
2 1
1 2
1 2
2 1
2 1
1 2
2 2
1 2
2 2
2 2
1 2
1 2

result:

ok AC

Test #11:

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

input:

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

output:

Yes
32
2 2
2 2
2 2
1 3
1 3
2 2
1 3
1 3
2 1
1 1
1 1
1 1
2 1
2 1
2 1
1 1
2 2
2 2
1 1
2 2
2 2
1 1
1 1
1 1
2 1
2 1
2 1
1 1
1 1
1 1
2 1
1 1

result:

ok AC

Test #12:

score: -100
Time Limit Exceeded

input:

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

output:


result: