QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505420#5804. EZ-Sokobanxiaowuc117 ✓303ms6032kbC++173.4kb2024-08-05 05:15:342024-08-05 05:15:35

詳細信息

Subtask #1:

score: 7
Accepted

Test #1:

score: 7
Accepted
time: 3ms
memory: 3852kb

input:

50
11 12
#....#.#.#.#
...###.###..
###.#...####
##..#....#.#
.##..o....#.
##.##..#x.##
..###.#####.
#####.####.#
.###.#.....#
#.#..#.....#
#...###.#.##
12 12
............
............
............
...........o
...........o
............
............
.xx.........
............
............
...............

output:

Case #1: 4
Case #2: -1
Case #3: 8
Case #4: 6
Case #5: -1
Case #6: 2
Case #7: 12
Case #8: 11
Case #9: 6
Case #10: 6
Case #11: -1
Case #12: 22
Case #13: 2
Case #14: 10
Case #15: 12
Case #16: 18
Case #17: 4
Case #18: -1
Case #19: 2
Case #20: 28
Case #21: 8
Case #22: 2
Case #23: 12
Case #24: 24
Case #25...

result:

ok 50 lines

Subtask #2:

score: 10
Accepted

Test #2:

score: 10
Accepted
time: 303ms
memory: 6032kb

input:

50
10 11
...........
....#......
...o#....xx
..oo...#..x
.....#.....
...........
#..........
...........
...........
.........#.
10 12
.###.#..#.#.
.#..##.#..#.
..#....o.#..
.#x....o#.#.
#xx....o..#.
.xx...oo#..#
..#..##.#..#
##.###.###.#
.#.#...##.##
#...##.###.#
12 11
###.####..#
########...
#####...

output:

Case #1: 44
Case #2: 42
Case #3: -1
Case #4: -1
Case #5: 30
Case #6: 31
Case #7: 89
Case #8: 14
Case #9: 79
Case #10: -1
Case #11: 11
Case #12: 30
Case #13: 57
Case #14: 27
Case #15: 6
Case #16: 10
Case #17: 12
Case #18: 58
Case #19: 9
Case #20: 38
Case #21: 11
Case #22: 16
Case #23: -1
Case #24: 20...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed