QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#293970#4856. Puzzle: Patrick's Paraboxucup-team025#WA 256ms83620kbC++2027.8kb2023-12-30 00:50:292023-12-30 00:50:30

詳細信息

Test #1:

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

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: 1ms
memory: 3484kb

input:

1
2 2
pb
-=

output:

-1

result:

ok 1 number(s): "-1"

Test #3:

score: 0
Accepted
time: 256ms
memory: 3496kb

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: 46ms
memory: 32540kb

input:

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

output:

-1

result:

ok 1 number(s): "-1"

Test #5:

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

input:

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

output:

-1

result:

ok 1 number(s): "-1"

Test #6:

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

input:

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

output:

-1

result:

ok 1 number(s): "-1"

Test #7:

score: 0
Accepted
time: 76ms
memory: 63444kb

input:

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

output:

-1

result:

ok 1 number(s): "-1"

Test #8:

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

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: 33ms
memory: 16392kb

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: 75ms
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: 46ms
memory: 21312kb

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: 43ms
memory: 4056kb

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'