QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505404#5768. Portalxiaowuc125 ✓1ms3812kbC++172.4kb2024-08-05 05:08:322024-08-05 05:08:32

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 3756kb

input:

200
8 8
.#.#....
..O....#
......#.
........
........
....#...
.X......
........
7 8
........
....X...
........
........
....O...
........
..#.....
6 8
.#..#...
..####.#
#..##X.#
#O#.#..#
##.##...
##....##
2 3
.O#
#.X
6 7
.O##...
.....##
X....##
..#..#.
.#....#
##..#..
2 3
##O
X#.
2 3
X#.
O..
2 3
#.X...

output:

Case #1: 3
Case #2: 3
Case #3: THE CAKE IS A LIE
Case #4: 2
Case #5: 3
Case #6: THE CAKE IS A LIE
Case #7: 1
Case #8: 1
Case #9: THE CAKE IS A LIE
Case #10: 3
Case #11: 1
Case #12: THE CAKE IS A LIE
Case #13: 1
Case #14: 1
Case #15: THE CAKE IS A LIE
Case #16: 11
Case #17: 22
Case #18: 3
Case #19: 5...

result:

ok 200 lines

Subtask #2:

score: 15
Accepted

Test #2:

score: 15
Accepted
time: 0ms
memory: 3812kb

input:

50
14 15
#..#...#.....##
..#.#..#....#..
...#......#O##.
#......##..##..
##..##.#.#.#.##
..#X.......#...
.....##.#.....#
##.#.#....##...
....##.####.##.
##..#..#...#...
#.###..#..#..#.
.....##..##.#.#
##...#.##....#.
####.#.#..#.#..
15 15
O..............
##############.
...............
.############...

output:

Case #1: 8
Case #2: 17
Case #3: 5
Case #4: 2
Case #5: 4
Case #6: THE CAKE IS A LIE
Case #7: 6
Case #8: 6
Case #9: 7
Case #10: 5
Case #11: 4
Case #12: 5
Case #13: 2
Case #14: 5
Case #15: 2
Case #16: 10
Case #17: THE CAKE IS A LIE
Case #18: THE CAKE IS A LIE
Case #19: THE CAKE IS A LIE
Case #20: 4
Cas...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed