QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#293961#4856. Puzzle: Patrick's Paraboxucup-team025#WA 243ms83620kbC++2027.8kb2023-12-30 00:39:242023-12-30 00:39:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
9 9
#########
#####..-#
#..=##.##
#.p.##.##
....##.##
#...b..##
#...##.##
#....####
####.####
9 9
#########
#.......#
#.#####.#
#.#=....#
..#....-#
###.p.#.#
#.....#b#
#.....#.#
####.####
9 9
####.####
#....####
#.####.##
#.......#
#.......#
###.#####
#=.b#..##
#-..p..##
#########

output:

7
4
19

result:

ok 3 number(s): "7 4 19"

Test #2:

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

input:

1
2 2
pb
-=

output:

-1

result:

ok 1 number(s): "-1"

Test #3:

score: 0
Accepted
time: 243ms
memory: 3508kb

input:

100000
2 2
-p
=b
2 2
b-
=p
2 2
-b
p=
2 2
-p
b=
2 2
p=
-b
2 2
b=
-p
2 2
=b
-p
2 2
b=
-p
2 2
-p
b=
2 2
b=
-p
2 2
p=
b-
2 2
pb
=-
2 2
p-
=b
2 2
-=
pb
2 2
=p
-b
2 2
p=
-b
2 2
-b
=p
2 2
=p
-b
2 2
=b
-p
2 2
=-
bp
2 2
-=
bp
2 2
bp
=-
2 2
=-
bp
2 2
=b
-p
2 2
bp
-=
2 2
-b
p=
2 2
=p
b-
2 2
b-
p=
2 2
pb
=-
2 2...

output:

-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-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 100000 numbers

Test #4:

score: 0
Accepted
time: 43ms
memory: 32432kb

input:

1
500 200
#....#.#.#.##.#..#.#..#......#...#..#...#.#...........#.#.#..#...###..##..#.#.#.....#........#..####..#..#..#####...............#.#......#.##.#..##.........##.###.#....###..#...#.#...#...##..##.#...#.
##..##.....#.##..#.#.###.#....#...#..#.#....##..............##.....#...#....#..##.##...##...

output:

-1

result:

ok 1 number(s): "-1"

Test #5:

score: 0
Accepted
time: 55ms
memory: 32500kb

input:

1
200 500
...##..#.....#.......##..##.#......#...#.....#.##.##..#...##...##....#..##.##..##..#..........####.......#.#...#....##....#.#..#..##....#..#......###...#.#..#.#..#..#.....#.#......#.........###....#..#.............#......#..#.#..####.#...#..#.#..##...#...##.###....#.####..#......#...#..#.....

output:

-1

result:

ok 1 number(s): "-1"

Test #6:

score: 0
Accepted
time: 80ms
memory: 83620kb

input:

1
100000 2
..
.#
..
##
..
..
..
##
.#
#.
#.
##
##
#.
##
##
..
#.
##
#.
..
..
..
##
.#
.#
.#
..
.#
.#
.#
.#
##
##
##
##
..
..
#.
.#
#.
..
.#
##
##
##
##
.#
##
..
.#
..
..
#.
#.
##
#.
##
.#
#.
#.
#.
##
.#
..
.#
.#
.#
##
#.
..
..
##
..
#.
##
.#
..
##
##
.#
.#
#.
##
..
.#
#.
..
..
#.
#.
##
..
.#
#.
#.
#...

output:

-1

result:

ok 1 number(s): "-1"

Test #7:

score: 0
Accepted
time: 67ms
memory: 63496kb

input:

1
2 100000
.......##........###.#.#..###.#....##.##.#.#.##..#..##.#.#...##.#...######...#....##..#####.###.##..#####...#....####..#.#.###...####.###..#..#.###..#########...#.#.####..##.#####..#...##.####..#.###..##..##...##...#.##.#.#..##....###..##.#...#......##...#.####.#....##...#.#....#.#.###.##...

output:

-1

result:

ok 1 number(s): "-1"

Test #8:

score: 0
Accepted
time: 64ms
memory: 28260kb

input:

10
19 64
..#...........#.........#.............#..........#...#....#....#
....#.##......#......#..#........##.......#................#...#
...................#....#....##...#....#...#...#................
#...#....#...#.#....#.#...............#....#.................#..
...........#......###...#.........

output:

-1
-1
-1
87
87
274
10
17
16
118

result:

ok 10 numbers

Test #9:

score: 0
Accepted
time: 36ms
memory: 16328kb

input:

10
89 145
........#........#..#.#.................................#..#.....#......#...#...#.#.......#..........................#.#...#.............#.......
..#...#.............#....#...........................#...#....................#.....##..##.......##.....#.#..#...#....#....#.#.#...................

output:

102
259
127
9
50
107
38
16
-1
-1

result:

ok 10 numbers

Test #10:

score: 0
Accepted
time: 80ms
memory: 28820kb

input:

10
102 56
.#..#.............#...#...............#..........#......
.........#..............#.............#...#.............
......#.......................#........................#
.#.............##..#..#....#............##..............
.#........#................#....#.#...........#.........
........

output:

117
-1
64
2
74
13
252
-1
-1
-1

result:

ok 10 numbers

Test #11:

score: 0
Accepted
time: 56ms
memory: 21328kb

input:

10
134 115
...............................#...............#..............##........#.....#.......#...#...............#........
...........#...#.......#....#.....#...............#.............#..................#......#.........#..........#...
.............#.................#....................#.......

output:

31
75
157
45
9
99
47
60
-1
-1

result:

ok 10 numbers

Test #12:

score: -100
Wrong Answer
time: 41ms
memory: 4012kb

input:

1000
3 3
#p=
.#.
b-.
9 4
p.#.
##.#
.#.#
.#.b
...#
=###
###-
###.
.###
4 10
.p..###.=.
##..#..##.
.b..##.#.#
.##.-.#...
2 12
....#....#p#
...#-#=..b##
21 33
#.########....#.#..#.#.#..###.#..
.##.##.....##.##.....#..#...###..
..#####..###...#..#..#.#..##..###
.#.#..####..#...###..####.###...#
##.#.#.....

output:

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

result:

wrong answer 109th numbers differ - expected: '10', found: '-1'