QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#741253#9478. Shift PuzzlejlgxyWA 1ms3796kbC++176.3kb2024-11-13 13:57:142024-11-13 13:57:15

详细

Test #1:

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

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
1 2
1 2
2 1
1 2
2 1
2 1

result:

ok AC

Test #2:

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

input:

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

output:

Yes
0

result:

ok AC

Test #3:

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

input:

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

output:

No

result:

ok AC

Test #4:

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

input:

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

output:

No

result:

ok AC

Test #5:

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

input:

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

output:

No

result:

ok AC

Test #6:

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

input:

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

output:

No

result:

ok AC

Test #7:

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

input:

2
..
..
..
..

output:

Yes
0

result:

ok AC

Test #8:

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

input:

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

output:

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

result:

ok AC

Test #9:

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

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: 3484kb

input:

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

output:

Yes
12
2 2
1 1
2 2
2 2
1 1
1 1
1 1
1 1
2 1
2 1
1 1
2 1

result:

ok AC

Test #11:

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

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
1 2
1 2
1 2
2 1
1 2
2 1
2 1
2 1

result:

ok AC

Test #12:

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

input:

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

output:

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

result:

ok AC

Test #13:

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

input:

2
.#
.#
#.
#.

output:

Yes
8
2 1
1 2
2 1
1 2
1 2
2 2
1 2
2 2

result:

ok AC

Test #14:

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

input:

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

output:

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

result:

ok AC

Test #15:

score: -100
Wrong Answer
time: 0ms
memory: 3620kb

input:

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

output:

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

result:

wrong answer WA S is not T