QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#668909#9478. Shift Puzzleucup-team5330WA 2ms3940kbC++144.0kb2024-10-23 16:33:382024-10-23 16:33:39

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3940kb

input:

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

output:

Yes
25
2 1
1 3
2 1
1 3
2 2
1 2
2 3
1 2
1 2
2 3
2 3
1 2
1 2
1 2
2 2
2 2
1 2
1 2
1 2
2 1
1 2
2 1
2 1
1 2
1 2

result:

ok AC

Test #2:

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

input:

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

output:

Yes
10
2 1
2 1
1 3
1 3
2 1
2 1
1 3
1 3
1 3
1 3

result:

ok AC

Test #3:

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

input:

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

output:

No

result:

ok AC

Test #4:

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

input:

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

output:

No

result:

ok AC

Test #5:

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

input:

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

output:

No

result:

ok AC

Test #6:

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

input:

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

output:

No

result:

ok AC

Test #7:

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

input:

2
..
..
..
..

output:

Yes
1
2 2

result:

ok AC

Test #8:

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

input:

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

output:

Yes
20
2 1
1 3
2 3
1 2
1 2
2 3
2 3
1 2
1 2
1 2
1 2
1 2
1 2
2 1
1 2
1 2
2 1
2 1
1 2
1 2

result:

ok AC

Test #9:

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

input:

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

output:

Yes
10
2 1
1 3
2 1
1 3
1 3
2 1
2 1
1 3
1 3
1 3

result:

ok AC

Test #10:

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

input:

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

output:

Yes
13
2 1
2 2
1 1
1 1
2 1
1 1
1 1
2 1
2 1
1 1
1 1
2 2
2 2

result:

ok AC

Test #11:

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

input:

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

output:

Yes
37
2 2
1 2
1 2
1 2
2 1
1 2
2 1
2 1
2 1
1 2
1 2
1 2
1 2
1 4
1 4
1 4
1 4
1 4
2 4
1 4
2 4
2 4
2 4
1 4
1 4
1 4
2 2
1 4
1 4
1 4
2 2
2 2
2 2
1 4
1 4
1 4
1 4

result:

ok AC

Test #12:

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

input:

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

output:

Yes
37
2 2
1 1
1 1
1 1
2 3
1 1
2 3
2 3
2 3
1 1
1 1
1 1
1 1
1 2
1 2
1 2
1 2
2 1
1 2
2 1
2 1
2 1
1 2
1 2
1 2
1 3
2 1
1 3
1 3
1 3
2 1
2 1
2 1
1 3
1 3
1 3
1 3

result:

ok AC

Test #13:

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

input:

2
.#
.#
#.
#.

output:

Yes
3
2 1
1 2
1 1

result:

ok AC

Test #14:

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

input:

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

output:

Yes
26
2 1
1 3
2 1
1 3
2 3
1 1
1 1
1 1
1 1
2 1
1 1
2 1
2 1
1 1
2 2
1 3
1 3
2 1
1 3
1 3
2 1
2 1
1 3
1 3
2 2
2 2

result:

ok AC

Test #15:

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

input:

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

output:

Yes
23
2 1
1 3
2 1
1 3
2 3
1 2
1 2
2 2
1 2
1 2
2 2
2 2
1 2
1 2
1 2
1 2
2 1
1 2
1 2
2 1
2 1
1 2
1 2

result:

ok AC

Test #16:

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

input:

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

output:

Yes
23
2 1
1 3
2 1
1 3
2 3
1 2
1 2
1 2
2 3
1 2
2 3
2 3
1 2
1 2
1 2
2 2
1 2
1 2
2 2
2 2
1 2
1 2
1 2

result:

ok AC

Test #17:

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

input:

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

output:

Yes
58
2 2
1 2
2 3
1 3
2 3
2 4
1 1
1 1
1 1
1 1
2 3
1 1
2 3
2 3
2 3
1 1
1 1
1 1
1 1
1 1
1 1
2 1
1 1
2 1
2 1
2 1
1 1
1 1
1 1
1 1
1 3
1 3
1 3
1 3
1 3
2 4
1 3
2 4
2 4
2 4
1 3
1 3
2 1
1 3
1 3
2 3
1 3
1 3
1 3
2 3
2 3
2 3
1 3
1 3
1 3
2 1
2 1
2 1

result:

ok AC

Test #18:

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

input:

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

output:

Yes
54
2 2
1 2
2 3
1 3
2 3
2 4
1 1
1 1
1 1
1 1
1 1
1 1
2 1
1 1
2 1
2 1
2 1
1 1
1 2
2 3
1 2
1 2
1 2
2 3
2 3
2 3
1 2
1 2
1 2
1 2
2 3
1 4
1 4
1 4
2 3
2 3
2 3
1 4
1 4
1 4
1 4
1 4
1 1
2 2
1 1
1 1
1 1
2 2
2 2
2 2
1 1
1 1
1 1
1 1

result:

ok AC

Test #19:

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

input:

19
.######.######..###
...###.##.###.#####
.#.####..#.##...###
.#####.##.######.##
.##.#############..
.#.....##..#.##.#.#
#####.###..#.###.##
#.####.#...##..#.##
.######.##.##..####
.#.###.###.###..###
#######.###.#..###.
#####.###.####.##.#
..#.######..###..#.
#.#.#..####..###.#.
########.####..##...

output:

No

result:

ok AC

Test #20:

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

input:

21
#####################
#####################
#####################
#####################
#####################
#####################
#####################
#########.###########
#####################
#####################
#####################
#####################
#####################
###########...

output:

No

result:

ok AC

Test #21:

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

input:

26
##.###....#######.....#...
.#.##.#####..#..#..###.###
.#.#####.##.##.#.#.##.#..#
###.###...##...#.#....#.#.
.##..###..#.##.#.##..#.#.#
#..##...##.#...####...####
##.#..###.#.####...###....
.##..#..##.##..#.##...#.##
####.###..#.#####..#####..
.#.#.##..###.###..###.####
##.##.#..#..#....###..###.
...

output:

No

result:

ok AC

Test #22:

score: -100
Wrong Answer
time: 2ms
memory: 3784kb

input:

35
####.##.###.####..##.##############
####.####.##############.######.###
###########..######.###.######.###.
#.#.####.##.#####...###############
################.#####.############
#######...#.####.###..######.######
#.##.#############.####.######.#.##
##..####.####.#####################
#####.##....

output:

Yes
23976
2 28
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
2 28
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
2 28
2 28
2 28
2 28
...

result:

wrong answer WA S is not T