QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#82718#1952. Window Shoppingxiaowuc1AC ✓151ms4288kbC++175.5kb2023-02-28 16:11:222023-02-28 16:11:43

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 3320kb

input:

5 5
..D#.
.#...
.#...
.#...
..U#.

output:

10

result:

ok single line: '10'

Test #2:

score: 0
Accepted
time: 2ms
memory: 3320kb

input:

5 5
U...#
...#.
.....
.#...
#...D

output:

14

result:

ok single line: '14'

Test #3:

score: 0
Accepted
time: 2ms
memory: 3320kb

input:

4 5
.....
..#..
.#U#.
..D..

output:

6

result:

ok single line: '6'

Test #4:

score: 0
Accepted
time: 2ms
memory: 3368kb

input:

5 4
....
.##.
..#.
.#U#
...D

output:

2

result:

ok single line: '2'

Test #5:

score: 0
Accepted
time: 2ms
memory: 3312kb

input:

2 5
.U.D.
..#.#

output:

2

result:

ok single line: '2'

Test #6:

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

input:

2 10
#.....###.
..#.#.UD..

output:

3

result:

ok single line: '3'

Test #7:

score: 0
Accepted
time: 2ms
memory: 3368kb

input:

3 3
D..
...
..U

output:

6

result:

ok single line: '6'

Test #8:

score: 0
Accepted
time: 2ms
memory: 3376kb

input:

3 3
#..
.U.
..D

output:

4

result:

ok single line: '4'

Test #9:

score: 0
Accepted
time: 2ms
memory: 3380kb

input:

5 4
....
....
..U.
.D..
....

output:

16

result:

ok single line: '16'

Test #10:

score: 0
Accepted
time: 2ms
memory: 3368kb

input:

1 20
##.............U.D.#

output:

1

result:

ok single line: '1'

Test #11:

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

input:

20 1
#
.
.
D
.
.
.
.
.
.
.
.
U
.
.
.
.
.
.
.

output:

2

result:

ok single line: '2'

Test #12:

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

input:

9 9
U#.......
.#.#####.
.#.#...#.
.#.#.#.#.
.#.#.#.#.
.#.#.#.#.
.#.#.#.#.
.#.#.#.#.
...#D#...

output:

0

result:

ok single line: '0'

Test #13:

score: 0
Accepted
time: 5ms
memory: 3444kb

input:

9 11
...........
.###.#####.
.#...#..D#.
U#...#...#.
.######.##.
.#.......#.
.#.......#.
.###.#####.
...........

output:

19

result:

ok single line: '19'

Test #14:

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

input:

10 9
.........
.........
.#######.
.#D#U#.#.
.#.#.#.#.
.#.#.....
.#.######
.#.......
..######.
.........

output:

16

result:

ok single line: '16'

Test #15:

score: 0
Accepted
time: 151ms
memory: 4288kb

input:

9 11
...........
...........
...........
...........
.....D.....
....U......
...........
...........
...........

output:

111

result:

ok single line: '111'

Test #16:

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

input:

9 11
...........
...........
...........
...........
...........
...........
...........
...........
U.........D

output:

112

result:

ok single line: '112'

Test #17:

score: 0
Accepted
time: 2ms
memory: 3420kb

input:

11 9
..#..#..#
..#..#...
#..#..#..
#.D#..#..
..#..#..#
..#..U..#
#.....#..
#..#..#..
..#..#..#
..#..#..#
..#.....#

output:

41

result:

ok single line: '41'

Test #18:

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

input:

9 11
...........
.#.#####...
..#....#...
.#..#...#..
.#.#U#..#..
.#.#D...#..
.#..####...
.#.........
.#.#....#..

output:

35

result:

ok single line: '35'

Test #19:

score: 0
Accepted
time: 2ms
memory: 3372kb

input:

11 9
.........
.#.#####.
..#.#..#.
.#..#...#
.#.#D#..#
.#.#.....
.#..##.#.
........#
.#######.
.........
.#######U

output:

15

result:

ok single line: '15'

Test #20:

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

input:

9 11
.#.#.#.#.#.
...........
.#.#.#.#.#.
...........
.#.#.U.#.#.
...........
.#.D.#.#.#.
...........
.#.#.#.#.#.

output:

46

result:

ok single line: '46'

Test #21:

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

input:

9 11
...#U#...##
.#.....#...
##.#.#.#.##
.#.#.#.#...
.#.#.######
...#.#..D..
.#.#.#.#.##
.#.....#...
.#.#.###.##

output:

13

result:

ok single line: '13'

Test #22:

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

input:

11 9
.........
.........
#####U###
.........
####.####
.........
#####...#
.........
#####D###
.........
##....###

output:

32

result:

ok single line: '32'

Test #23:

score: 0
Accepted
time: 7ms
memory: 3536kb

input:

9 11
.#..#...#.#
.#..#...#.#
.#......D..
.#..#...#..
.U..#...#..
.#..#.#.#..
.#..#.#.#.#
.#..#.#.#.#
.#..#.#.#.#

output:

36

result:

ok single line: '36'

Test #24:

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

input:

9 11
...........
.#.######..
.#.#.#..#..
.#.#.#..#..
.#.#.#.#..#
.#.#.#.#.#D
.#.#.#.#.#.
.#.#.#...#.
.#U#.......

output:

12

result:

ok single line: '12'

Test #25:

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

input:

9 11
...........
.#########.
.#.........
.#.########
D#....U#...
.#######...
.#.........
.#.########
...........

output:

8

result:

ok single line: '8'

Test #26:

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

input:

9 11
###########
###########
###########
###########
###########
###########
#######UD##
###########
###########

output:

0

result:

ok single line: '0'

Test #27:

score: 0
Accepted
time: 17ms
memory: 3808kb

input:

9 11
##.D#..#..#
.##..#U#...
...#.#....#
#..........
.#....#..#.
....#......
..###..#...
....###...#
.##........

output:

44

result:

ok single line: '44'

Test #28:

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

input:

9 11
##..#.....#
.....#...#.
...###...D.
#.......##.
#..U#......
..#....##..
..#....###.
........#..
....#...#..

output:

56

result:

ok single line: '56'

Test #29:

score: 0
Accepted
time: 11ms
memory: 3512kb

input:

9 11
.....#.#...
.#.........
..#.##....#
..#..#D..##
....#.....#
....#.#.##.
...#.....#U
......#....
##.#.#....#

output:

50

result:

ok single line: '50'

Test #30:

score: 0
Accepted
time: 2ms
memory: 3376kb

input:

5 19
....#....#..#..#.#.
#........#..#..#...
..#...#.#....U.....
.......D..#.....#..
.#.....#.#......#..

output:

56

result:

ok single line: '56'

Test #31:

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

input:

5 19
......#....#.....##
.#...........#.#.##
#......#...U..#.#.#
..........#.#...#..
....#..#.D.........

output:

52

result:

ok single line: '52'

Test #32:

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

input:

5 19
...................
.....#........##...
.#..#...##.....#...
#.......#...#..#...
..#.#.U.#.....D#...

output:

60

result:

ok single line: '60'

Test #33:

score: 0
Accepted
time: 5ms
memory: 3336kb

input:

16 6
......
..U#..
#.....
.#.#..
....#.
#.....
.....#
.#.#..
......
......
#....#
.....#
.#D.#.
....#.
......
#.#...

output:

61

result:

ok single line: '61'

Test #34:

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

input:

16 6
....#.
#.....
##.#..
......
......
.....#
....D.
..####
....##
..#...
#...##
....U.
..#...
....#.
......
....#.

output:

61

result:

ok single line: '61'

Test #35:

score: 0
Accepted
time: 4ms
memory: 3432kb

input:

16 6
.....#
#.#...
......
.D....
#..#..
.#....
...##.
.....U
.##...
......
.#..#.
#..#.#
.....#
.....#
......
#..#..

output:

58

result:

ok single line: '58'

Test #36:

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

input:

5 5
...U.
....D
.....
.....
...##

output:

20

result:

ok single line: '20'

Test #37:

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

input:

4 4
U.D.
....
#.##
#.##

output:

5

result:

ok single line: '5'