QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#668982#9478. Shift Puzzleucup-team5330TL 155ms13408kbC++144.3kb2024-10-23 16:54:132024-10-23 16:54:14

詳細信息

Test #1:

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

input:

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

output:

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

result:

ok AC

Test #2:

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

input:

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

output:

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

result:

ok AC

Test #3:

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

input:

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

output:

No

result:

ok AC

Test #4:

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

input:

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

output:

No

result:

ok AC

Test #5:

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

input:

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

output:

No

result:

ok AC

Test #6:

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

input:

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

output:

No

result:

ok AC

Test #7:

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

input:

2
..
..
..
..

output:

Yes
1
1 1

result:

ok AC

Test #8:

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

input:

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

output:

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

result:

ok AC

Test #9:

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

input:

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

output:

Yes
1
1 3

result:

ok AC

Test #10:

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

input:

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

output:

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

result:

ok AC

Test #11:

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

input:

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

output:

Yes
37
1 3
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
1 4
2 1
1 4
2 1
2 1
2 1
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: 3684kb

input:

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

output:

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

result:

ok AC

Test #13:

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

input:

2
.#
.#
#.
#.

output:

Yes
2
1 1
1 2

result:

ok AC

Test #14:

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

input:

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

output:

Yes
22
1 3
1 3
2 2
2 1
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: 3748kb

input:

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

output:

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

result:

ok AC

Test #16:

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

input:

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

output:

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

result:

ok AC

Test #17:

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

input:

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

output:

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

result:

ok AC

Test #18:

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

input:

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

output:

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

result:

ok AC

Test #19:

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

input:

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

output:

No

result:

ok AC

Test #20:

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

input:

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

output:

No

result:

ok AC

Test #21:

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

input:

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

output:

No

result:

ok AC

Test #22:

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

input:

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

output:

Yes
24396
1 22
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:

ok AC

Test #23:

score: 0
Accepted
time: 1ms
memory: 3824kb

input:

34
.........#.................#......
...#.#............................
..........#.............#.........
.................................#
.......#..........................
..................................
.......................#..........
.................#................
....................

output:

Yes
4557
1 13
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
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 26
1 1
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2 26
2...

result:

ok AC

Test #24:

score: 0
Accepted
time: 1ms
memory: 3780kb

input:

23
####.####.#.#.#########
..####.##.##.###.######
#.###...#.#.###.###.###
###.#####.####..#######
#.#...##.######..#.#.##
.####.##.###########..#
##.#....##..###.#.#..##
##.#.####...##.###..#.#
##.###..###########.###
###.###..###.#.#.#.##.#
#.####.###..##.#####..#
###.######.##.####..#.#
.###.####...

output:

Yes
8304
1 19
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 12
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 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1...

result:

ok AC

Test #25:

score: 0
Accepted
time: 1ms
memory: 3832kb

input:

20
#....###......##...#
.......##...#...#..#
......#.....#.#.....
..#....##.#..#.#....
#..#...#.#...##.#...
...#...#...##.....#.
#####.#........#....
....##...#.#..#.....
.#.#........#....#..
.#.#.###...#........
#.....#..##.##......
##....##..#.........
.#.#..............#.
#..............#..#.
##....

output:

Yes
5041
1 7
2 20
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 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
2 20
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
1 2
1 2
1 2
1 2
1 2
1 2...

result:

ok AC

Test #26:

score: 0
Accepted
time: 1ms
memory: 3768kb

input:

12
##..#.......
.#.##.###.#.
##.#..#.####
##.###..###.
.#.#.##.#.##
##.###.#...#
#..###..####
..####.#####
#.#.##.##.#.
.#.##.####..
.#.....#####
###.#..##.#.
.##.#######.
..###.#.####
#.###...##..
.#...##.#.##
.#.#########
#...##.#.##.
.##.##...##.
..####.#.###
...#.#######
..#.......#.
..#.#..##.#...

output:

Yes
1273
1 3
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
2 12
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
2 12
1 1
1 1
1 2
1 2
1 2
2 11
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
2 11
2 11
2 11
2 11
2 11
2 11
2 11
2 11
2 11
2 11
2 11
1 2
1 2
1 2
1 2...

result:

ok AC

Test #27:

score: 0
Accepted
time: 144ms
memory: 5544kb

input:

44
###...##.#....##.#####.##.##...####.##....##
#.#...##..#.#.##..#.###.......####..#..#..#.
..#.########..##.#.....##.....#..##...#.#.#.
#.#.##.#.#.#.#....#.#.######.#....#......###
#.#.#.##...##.#..#.#..#######.#.###..###.###
###..#...#...#........##..#...#.##..#..#..##
..##.#..#..#####......#..##...

output:

Yes
84570
1 39
1 16
2 44
2 14
1 36
1 14
2 22
1 3
1 44
2 34
2 10
1 32
2 42
1 4
2 9
2 5
2 24
2 20
2 7
2 29
1 43
2 37
2 13
1 23
1 7
2 9
2 12
2 26
2 39
2 37
2 22
2 16
1 42
2 38
1 41
2 1
2 24
1 15
2 21
1 15
1 33
1 9
2 39
1 37
1 9
2 35
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 ...

result:

ok AC

Test #28:

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

input:

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

output:

Yes
992
1 7
1 4
2 10
2 6
1 2
1 8
2 10
1 5
1 4
2 10
2 10
1 4
2 10
1 10
2 1
2 1
2 2
2 2
2 1
2 1
1 1
2 1
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
2 5
1 2
2 5
2 5
2 5
2 5
2 5
2 5
2 5
2 5
2 5
1 2
1 2
1 2
1 2
1 2
2 4
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
2 4
2 4
2 4
2 4
2 4
2 4
2 4
2 4
2 ...

result:

ok AC

Test #29:

score: 0
Accepted
time: 155ms
memory: 5364kb

input:

44
..#.#.###.#.....#...#.#####.....#....#.#....
####.....#..##...##..#.####.#.#..#..#..#####
#.###.##########.##.#####..#####.#.##....#.#
#..#.##.##..###..#...#.....###.##..##.#.##..
.####.#..##.###.#.###....#..#..######...#.#.
##...#.#.##.##..#.##.####.###.#..#####.#.###
.#..####...##.####.....##.....

output:

Yes
84618
1 39
1 16
2 44
2 14
1 36
1 14
2 22
1 3
1 44
2 34
2 10
1 32
2 42
1 4
2 9
2 5
2 24
2 20
2 7
2 29
1 43
2 37
2 13
1 23
1 7
2 9
2 12
2 26
2 39
2 37
2 22
2 16
1 42
2 38
1 41
2 1
2 24
1 15
2 21
1 15
1 33
1 9
2 39
1 37
1 9
2 35
1 10
1 29
2 11
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 ...

result:

ok AC

Test #30:

score: 0
Accepted
time: 1ms
memory: 3740kb

input:

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

output:

Yes
931
1 7
1 4
2 10
2 6
1 2
1 8
2 10
1 5
1 4
2 10
2 10
1 4
2 10
1 10
2 1
2 1
2 2
2 2
2 1
2 1
1 1
1 1
1 1
2 5
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
2 5
2 5
2 5
2 5
2 5
2 5
2 5
2 5
2 5
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 2
1 2
2 9
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
1 2
2 9
2 9
2 9
2 9
2 9
2 9
2 9
2 9
2 ...

result:

ok AC

Test #31:

score: 0
Accepted
time: 34ms
memory: 3964kb

input:

30
..#.#..#....##.#..###...##.#..
..###...#####.#..##.##......##
..###.#.####.....#...##..##.#.
#.#....####.#..##...##..###..#
#.##.#.........#.##.#.##......
#.##......##..#.######..##..##
###..#.##..##...#####.##..##.#
#####.#..#...###.....##..#.#.#
##..#.####.####....####......#
##.#..####.#..##.....

output:

Yes
26926
1 27
1 24
2 20
2 16
1 12
1 8
2 30
1 25
1 4
2 10
2 20
1 4
2 30
1 20
2 21
2 21
2 2
2 2
2 11
2 1
1 1
2 21
2 23
1 9
1 3
2 27
2 8
2 4
2 13
2 11
2 14
2 10
1 12
2 4
1 5
2 21
2 24
1 15
2 13
1 13
1 13
1 21
2 23
1 9
1 5
2 7
1 1
1 1
1 1
1 1
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...

result:

ok AC

Test #32:

score: 0
Accepted
time: 29ms
memory: 8772kb

input:

79
###########.#####.#.###################################################.######.
#####.#########.##.###.##.#.######.############.####.##.###########.##..#######
#########.##..########.###.###.##########..################.#########.####.###.
#####.####..##.#####.#.###.######.######################....

output:

Yes
179963
1 48
1 1
1 1
1 1
1 1
2 77
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
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...

result:

ok AC

Test #33:

score: 0
Accepted
time: 35ms
memory: 8676kb

input:

79
..........##...............#..#.#...#...#.....##...............................
..#...#......#.........#..##...#.#....##.##.........##.#...#...#......#..##....
.##....#.........#........#...............#....#......#.......#....#..#....#...
...#...##...##...#...#.#.....................#.#............

output:

Yes
207297
1 67
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
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
1 1
1 1
1 1
...

result:

ok AC

Test #34:

score: 0
Accepted
time: 29ms
memory: 9492kb

input:

79
.......#..##.#.........#....#....#..#..#.........#.#...........#...............
..#.................#............#...........................#........#.#....#.
#........................#........#........#..................#..##...........#
....#...##.................#......##........................

output:

Yes
153103
1 67
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
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
1 1
1 1
1 1
...

result:

ok AC

Test #35:

score: 0
Accepted
time: 10ms
memory: 5404kb

input:

79
....................#..........................................................
.............#..#..#.........#............#...............................#....
.......................................................#.......................
.........................#....#......................#.#....

output:

Yes
70627
1 67
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
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
1 1
1 1
1 1
1...

result:

ok AC

Test #36:

score: 0
Accepted
time: 50ms
memory: 13408kb

input:

79
...#####...######.#####.###...####.#.##.#.#....#..##..########.##.##.#.####..##
.##..##.####.#####.##.#######.####..#####..#..#.#####.#...####.#######.#..###.#
#..####.#.#####.###.####..##..##.#.#####..#.###..#..#....#.####..###.##.###.#.#
.##.####.####..######.###..##.#########.#.##.##.#####.......

output:

Yes
337410
1 67
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
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
1 1
1 1
1 1
...

result:

ok AC

Test #37:

score: -100
Time Limit Exceeded

input:

79
######.#####.##.....#..##.##.##.##.###.#####..#####.#.#######.##.#.###.#.###.#.
...#.....##.....#...#...#.####....#.#.#.######..#..####.#.#######.###..###.###.
.#.#....##.....##.###.#####...#......#.#..#.#..###.#######.#.##...##..###.#..#.
.##.#.#..##.#...###.##....##......#..#....##.##.#.#.#...#...

output:


result: