QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#132310#3810. LandscapinghoriiseunAC ✓7ms6604kbC++175.4kb2023-07-29 14:46:562023-07-29 14:46:57

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 4 1000 2000
...#
#..#
...#
##..
###.

output:

11000

result:

ok single line: '11000'

Test #2:

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

input:

50 50 1 1
####################.###########################.#
#.####..#.###########.############################
########################################.#.#######
##.##..#####.######.#..############.########.#####
#########.########.################.###########.##
###############.###.###########.###...

output:

237

result:

ok single line: '237'

Test #3:

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

input:

50 50 1 2
....#.........##............#........#.........#.#
...........##..........##...............#....#...#
..##...............#....##...............#.......#
..............#...#....#....#..........#.......#..
#.##...................#......#...................
..........#...................#.......

output:

476

result:

ok single line: '476'

Test #4:

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

input:

50 50 1 1
....#.........##............#........#.........#.#
...........##..........##...............#....#...#
..##...............#....##...............#.......#
..............#...#....#....#..........#.......#..
#.##...................#......#...................
..........#...................#.......

output:

239

result:

ok single line: '239'

Test #5:

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

input:

50 50 100000 100000
#.###..#.#.#.#####.#...#....#.###.##.#.###.#..##.#
#..##......###.#.####..###.##.#..##..#.#####.#.###
..##.##.#.#.....#..#...####.#...#..#.#.#.#.#..####
##..#....###..#.#.#.#..##...##.##.#.##.#####.#####
#####..##.#.#.#....#.###.##..##..#...##.#...#.#..#
##..###.#.###.#..##...###...

output:

121500000

result:

ok single line: '121500000'

Test #6:

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

input:

50 50 100000 100000
##################################################
#.################################################
#.################################################
#.################################################
#.################################################
#.#######################...

output:

9800000

result:

ok single line: '9800000'

Test #7:

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

input:

50 50 100000 100000
##################################################
##################################################
##################################################
##################################################
##################################################
#########################...

output:

0

result:

ok single line: '0'

Test #8:

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

input:

1 1 1 1
.


output:

0

result:

ok single line: '0'

Test #9:

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

input:

49 50 100000 100000
#.###..#.#.#.#####.#...#....#.###.##.#.###.#..##.#
#..##......###.#.####..###.##.#..##..#.#####.#.###
..##.##.#.#.....#..#...####.#...#..#.#.#.#.#..####
##..#....###..#.#.#.#..##...##.##.#.##.#####.#####
#####..##.#.#.#....#.###.##..##..#...##.#...#.#..#
##..###.#.###.#..##...###...

output:

119100000

result:

ok single line: '119100000'

Test #10:

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

input:

50 49 100000 100000
#.###..#.#.#.#####.#...#....#.###.##.#.###.#..##.
##..##......###.#.####..###.##.#..##..#.#####.#.#
##..##.##.#.#.....#..#...####.#...#..#.#.#.#.#..#
#####..#....###..#.#.#.#..##...##.##.#.##.#####.#
#########..##.#.#.#....#.###.##..##..#...##.#...#
.#..###..###.#.###.#..##...###...

output:

119000000

result:

ok single line: '119000000'

Test #11:

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

input:

50 1 2 1
#
.
#
#
#
.
.
#
.
#
.
#
.
#
#
#
#
#
.
#
.
.
.
#
.
.
.
.
#
.
#
#
#
.
#
#
.
#
.
#
#
#
.
#
.
.
#
#
.
#

output:

20

result:

ok single line: '20'

Test #12:

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

input:

4 4 1000 1500
....
.#..
.#..
####


output:

7000

result:

ok single line: '7000'

Test #13:

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

input:

1 50 2 1
...#.#.##.#....#.####.##.#.########..#...##..#..##

output:

19

result:

ok single line: '19'

Test #14:

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

input:

5 5 1 10
.#.#.
#.#.#
.#.#.
#.#.#
.#.#.


output:

40

result:

ok single line: '40'

Test #15:

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

input:

5 5 10 1
.#.#.
#.#.#
.#.#.
#.#.#
.#.#.


output:

12

result:

ok single line: '12'

Test #16:

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

input:

50 50 1 10
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.
.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.
.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.
.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#...

output:

4900

result:

ok single line: '4900'

Test #17:

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

input:

50 50 10 1
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.
.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.
.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#
#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.
.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#...

output:

1250

result:

ok single line: '1250'

Test #18:

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

input:

50 50 1 2
#.###..#.#.#.#####.#...#....#.###.##.#.###.#..##.#
#..##......###.#.####..###.##.#..##..#.#####.#.###
..##.##.#.#.....#..#...####.#...#..#.#.#.#.#..####
##..#....###..#.#.#.#..##...##.##.#.##.#####.#####
#####..##.#.#.#....#.###.##..##..#...##.#...#.#..#
##..###.#.###.#..##...###.#...#.#.....

output:

2099

result:

ok single line: '2099'

Test #19:

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

input:

50 50 1 1
#.###..#.#.#.#####.#...#....#.###.##.#.###.#..##.#
#..##......###.#.####..###.##.#..##..#.#####.#.###
..##.##.#.#.....#..#...####.#...#..#.#.#.#.#..####
##..#....###..#.#.#.#..##...##.##.#.##.#####.#####
#####..##.#.#.#....#.###.##..##..#...##.#...#.#..#
##..###.#.###.#..##...###.#...#.#.....

output:

1215

result:

ok single line: '1215'

Test #20:

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

input:

50 50 1 2
####################.###########################.#
#.####..#.###########.############################
########################################.#.#######
##.##..#####.######.#..############.########.#####
#########.########.################.###########.##
###############.###.###########.###...

output:

472

result:

ok single line: '472'