QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#668911#9478. Shift Puzzleucup-team5330RE 0ms3924kbC++144.1kb2024-10-23 16:34:242024-10-23 16:34:27

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

Yes
22
2 1
1 3
2 2
1 1
1 2
1 2
1 2
2 1
1 2
2 1
2 1
1 2
1 2
1 3
2 2
1 3
1 3
2 2
2 2
1 3
1 3
1 3




result:

ok AC

Test #2:

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

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

input:

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

output:

No

result:

ok AC

Test #4:

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

input:

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

output:

No

result:

ok AC

Test #5:

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

input:

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

output:

No

result:

ok AC

Test #6:

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

input:

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

output:

No

result:

ok AC

Test #7:

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

input:

2
..
..
..
..

output:

Yes
1
2 2



result:

ok AC

Test #8:

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

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

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

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

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

input:

2
.#
.#
#.
#.

output:

Yes
5
2 2
1 1
1 1
1 2
1 1



result:

ok AC

Test #14:

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

input:

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

output:

Yes
21
2 1
1 3
2 2
2 3
1 3
1 3
2 3
2 3
1 3
1 3
1 3
1 3
1 3
1 3
1 3
2 2
1 3
2 2
2 2
1 3
1 3




result:

ok AC

Test #15:

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

input:

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

output:

Yes
26
2 1
1 3
2 2
1 1
1 2
1 1
1 1
2 3
1 1
1 1
2 3
2 3
1 1
1 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 #16:

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

input:

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

output:

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




result:

ok AC

Test #17:

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

input:

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

output:

Yes
57
2 2
1 1
2 2
1 1
1 2
1 4
2 2
1 1
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
2 1
1 3
1 3
1 3
2 1
2 1
2 1
1 3
1 3
1 3
1 4
1 4
1 4
2 1
1 4
1 4
1 4
2 1
2 1
2 1
1 4
1 4





result:

ok AC

Test #18:

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

input:

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

output:

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





result:

ok AC

Test #19:

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

input:

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

output:

No

result:

ok AC

Test #20:

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

input:

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

output:

No

result:

ok AC

Test #21:

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

input:

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

output:

No

result:

ok AC

Test #22:

score: -100
Runtime Error

input:

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

output:

Yes
24396
2 30
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 25
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 25
2 25
2 25
2 25
2 25
2 25
2 ...

result: