QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#335816#4079. 칠하기ahihi1234100 ✓363ms289044kbC++142.3kb2024-02-24 00:34:102024-02-24 00:34:11

詳細信息

Subtask #1:

score: 30
Accepted

Test #1:

score: 30
Accepted
time: 11ms
memory: 101908kb

input:

3 5
...##
....#
#.#..

output:

1

result:

ok single line: '1'

Test #2:

score: 0
Accepted
time: 20ms
memory: 101892kb

input:

4 4
..#.
#...
...#
.#..

output:

1

result:

ok single line: '1'

Test #3:

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

input:

15 15
#######..######
######....#####
#####......####
####........###
###..........##
##............#
#..............
...............
#.............#
##...........##
###.........###
####.......####
#####.....#####
######...######
#######.#######

output:

1

result:

ok single line: '1'

Test #4:

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

input:

16 16
########..######
#######....#####
######......####
#####........###
####..........##
###............#
##..............
................
##.............#
###...........##
####.........###
#####.......####
######.....#####
#######...######
########.#######
########.#######

output:

0

result:

ok single line: '0'

Test #5:

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

input:

15 16
########..######
#######....#####
######......####
#####........###
####..........##
###............#
##..............
................
##.............#
###...........##
####.........###
#####.......####
######.....#####
#######...######
########.#######

output:

1

result:

ok single line: '1'

Test #6:

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

input:

10 10
..#...#...
...#...#..
.#...#...#
#...#...#.
..#...#...
...#...#..
.#...#...#
#...#...#.
..#...#...
...#...#..

output:

1

result:

ok single line: '1'

Test #7:

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

input:

10 10
..#...#...
...#...#..
.#..#....#
#.......#.
.......#..
..#.......
.#.......#
#....#..#.
..#...#...
...#...#..

output:

1

result:

ok single line: '1'

Test #8:

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

input:

20 20
..#...#...#...#...#.
#..#...#...#...#....
....#...#...#...#..#
..#..#...#...#....#.
.#....#...#...#..#..
#...#..#...#....#...
...#....#...#..#...#
..#...#..#....#...#.
.#...#....#..#...#..
#...#...#...#...#...
...#...#...#...#...#
..#...#..#....#...#.
.#...#....#..#...#..
#...#..#...#....#...
...

output:

0

result:

ok single line: '0'

Test #9:

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

input:

10 16
..#..#..#..#..#.
#..#..#..#..#...
.#..#..#..#....#
..#..#..#....#..
#..#..#....#..#.
.#..#....#..#..#
..#....#..#..#..
#....#..#..#..#.
...#..#..#..#..#
.#..#..#..#..#..

output:

1

result:

ok single line: '1'

Test #10:

score: 0
Accepted
time: 22ms
memory: 102296kb

input:

50 45
..#...##..##...#...#.#.#.....#..#..##..##.#..
...#.#.#.#..##...###.#..##.##.#.....#......#.
#......#.##.##....#.....#......#.#.#.#...#...
.#.#####....##.#.#..###..#.##.###..#...#....#
.....#.#.##.#..#..#...#.##...##..#...#....##.
.#..#.....##..###...##....##..#...#.##.###...
..#.#.#.#..#.##.#....

output:

0

result:

ok single line: '0'

Test #11:

score: 0
Accepted
time: 18ms
memory: 100176kb

input:

50 45
.....#...#.#..#........#.........#..........#
...##.......#...##...#..#...###.....##...#..#
.#...#...#....#....#...#.......#...#..##...#.
......#.......#.#.#.......#..#.#.#....#......
#..#..#.....#.#.......#.#..#..#...#.#....#...
.#.#....#.#...#.#...#...#.#....#........#.#..
.....##..#...##.#....

output:

0

result:

ok single line: '0'

Test #12:

score: 0
Accepted
time: 21ms
memory: 102436kb

input:

50 50
.#.......###....#.#..#....#....#...#..##....#.#.#.
............#.................#......##...........
......................................#...........
.......................................##.........
...........#...#.................................#
#......#.....#..#.........#...............

output:

0

result:

ok single line: '0'

Test #13:

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

input:

50 50
###...###..#.##..###...#..#...###....#..#.#.##.###
#....#.#......#........##......#............##....
.....#..................#........................#
...#..............................................
#................................................#
#.........................................

output:

0

result:

ok single line: '0'

Test #14:

score: 0
Accepted
time: 16ms
memory: 102268kb

input:

50 50
###.####...#.#...###...##.#...###....#..#.#.##.###
#...##.#......#........##.....##............##...#
....##..................#...................#.....
...#................#.............................
#................................................#
#.........................................

output:

0

result:

ok single line: '0'

Test #15:

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

input:

50 50
###..###...#.##..###...####...###....#..#.#.##.###
#....#.#......#........##......#............##....
....##..................#...................#....#
...#................#.............................
#................................................#
#.........................................

output:

0

result:

ok single line: '0'

Test #16:

score: 0
Accepted
time: 14ms
memory: 102504kb

input:

50 50
#.#.#.....###..#...#..###.#.....#..###.##.#.#...#.
#........###......#....#.......##......##....#....
........##......#.....#........#.......#..........
.........#...........#................##..........
#..............#.................................#
.....#..................#.................

output:

0

result:

ok single line: '0'

Test #17:

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

input:

50 50
#.#.#....####..#...#.####.#.#...#.##.#.##.#.#...#.
#........###......#...##.......##......##....#....
........##......#.....#........#.......#..........
.........#...........#................##..........
#..............#.................................#
.....#..................#.................

output:

0

result:

ok single line: '0'

Test #18:

score: 0
Accepted
time: 20ms
memory: 102272kb

input:

50 50
#.#.#....####..#..##.####.#.#...#.##.#.##.#.#...#.
#........###......#..###.......##.......#....#....
........##......#.....#........#.......#..........
.........#...........#................##..........
#..............#.................................#
.....#..................#.................

output:

0

result:

ok single line: '0'

Test #19:

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

input:

50 50
.#.###..#...#..#...##.#..##..#....#..#..##..#..#..
.....#......#.....#.#...................#........#
#.........#.......#......................#........
##..............#.................................
.....#......................#....................#
#.....#...................................

output:

0

result:

ok single line: '0'

Test #20:

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

input:

50 50
##...#..#..###.#...##.#...#..#....#..#...#.##..#..
.....#....#.#.....#.#...................#........#
#.........#.......#......................#........
#...............#.................................
#................................................#
##........................................

output:

0

result:

ok single line: '0'

Test #21:

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

input:

50 50
.#.....#.#.#.#..##.#..#.###....##.###.##.###..#.##
..##..#........##....#..#..#...#......#..#.......#
#..##.........#..........#..#..###...###..#.....##
#.......#...##.#..###..#...#.#..###...#...##.#....
.......#.##....#.##...#...##...#.....#.....##.....
#.........##..#.##.#.....#.#....#.........

output:

0

result:

ok single line: '0'

Test #22:

score: 0
Accepted
time: 19ms
memory: 100228kb

input:

50 50
##.....##...###.##.....##..#..####.#.#..##..#..##.
...#...####..#..###...#.#..#..##...#..#..##...##..
##..#..#....##..##..#....#...###.....#..###.......
.#....#.#....##....##.......#.#.....#....#......##
.....#.......#....#........#.....#...#...#.......#
.........#..#.#.#..#....#.#..#........#...

output:

0

result:

ok single line: '0'

Test #23:

score: 0
Accepted
time: 8ms
memory: 100316kb

input:

50 50
##......#...###.##.....##.##...####..##.#...#..##.
...#...##.#..##..##...##........#..#..#..##...##..
##..##.#.#..###...###....#...###.........##......#
##....#..#....#....#.#..#...#..#..#.....##......#.
.....#.#......#...##...#...#..#..#..##...#........
............#..##..#..#.###..#....#...#...

output:

0

result:

ok single line: '0'

Test #24:

score: 0
Accepted
time: 8ms
memory: 102316kb

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
...#...#...#...#...#...#...#...#...#...#...#...#..
.#...#...#...#...#...#...#...#...#...#...#...#...#
#...#...#...#...#...#...#...#...#...#...#...#...#.
..#...#...#...#...#...#...#...#...#...#...#...#...
...#...#...#...#...#...#...#...#...#......

output:

0

result:

ok single line: '0'

Test #25:

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

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
...#...#...#...#...#...#...#...#...#...#...#...#..
.#...#...#...#...#...#...#...#...#...#...#...#...#
#...#...#...#...#...#...#...#...#...#...#...#...#.
..#...#...#...#...#...#...#...#...#...#...#...#...
...#...#...#...#...#...#...#...#...#......

output:

1

result:

ok single line: '1'

Test #26:

score: 0
Accepted
time: 16ms
memory: 102244kb

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
...#...#...#...#...#...#...#...#.....#.#...#...#..
.#...#...#...#...#...#...#...#...#...#...#...#...#
#.#.....#...#.#.....#...#...#...##..#...#...#...#.
..#...#...#...#...#...#...#...#...#...#...#...#...
...#...#...#...#...#...#...#...#...#......

output:

1

result:

ok single line: '1'

Test #27:

score: 0
Accepted
time: 22ms
memory: 102496kb

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
.......#...#...#...#...#...#...#...#...#...#...#..
.#...#...#...#...#...#...#...#...#...#...#...#...#
#...#...#...#...#...#...#...#...#...#...#...#...#.
..#...#...#...#...#...#...#...#...#...#...#...#...
...#...#...#...#...#...#...#...#...#......

output:

1

result:

ok single line: '1'

Test #28:

score: 0
Accepted
time: 8ms
memory: 102512kb

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
...#...#...#...#...#...#...#...#...#...#...#...#..
.#...#...#...#...#...#...#...#...#...#...#...#...#
#...#...#...#...#...#...#...#...#...#...#...#...#.
..#...#...#...#...#...#...#...#...#...#...#...#...
...#...#...#...#...#...#...#...#...#......

output:

1

result:

ok single line: '1'

Test #29:

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

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
...........#...........#...#...#...#...#...#...#..
.....#...............#...##..#...#...#...#...#...#
#...#...............#...#...#...#...#...#.......#.
.#..........#.........#.......#...#...#...#.#.....
...........#...#...#...#...#...#...#......

output:

1

result:

ok single line: '1'

Test #30:

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

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
...#.....#....#......#.....#...#.....#...#...#....
.#..##.......#...........##..#.....#.#......##....
#.#..##...##.#......#..#.#..#...#...#......#.....#
..#....##...#..#......#.#.....#.#.#..#..#...#...#.
......#....#..#....#..#....#...#.#.#..#...

output:

1

result:

ok single line: '1'

Test #31:

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

input:

50 50
#########################.########################
########################...#######################
#######################.....######################
######################.......#####################
#####################.........####################
####################...........########...

output:

0

result:

ok single line: '0'

Test #32:

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

input:

50 50
#########################.########################
########################...#######################
#######################.....######################
######################.......#####################
#####################.........####################
####################...........########...

output:

1

result:

ok single line: '1'

Test #33:

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

input:

50 50
...........##############.############............
...........#############...###########............
...........############.....##########............
...........###########.......#########............
...........##########.........########............
...........#########...........#######....

output:

0

result:

ok single line: '0'

Test #34:

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

input:

50 50
#########################.########################
#######..###############...#######################
######....#############.....######################
#####......###########.......#####################
####........#########.........####################
###.........########...........########...

output:

0

result:

ok single line: '0'

Test #35:

score: 0
Accepted
time: 8ms
memory: 102136kb

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
.......#..##.....#.......#....##...#......#......#
.#...#...#...#.....#....#....#...#.....#.....#....
#.......#...#......#...#..#..##.......#.....#.....
......##.###........#.#....##.##..#........##....#
....##...#........#.##...##....##....#....

output:

0

result:

ok single line: '0'

Test #36:

score: 0
Accepted
time: 8ms
memory: 102168kb

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
...#..##...#.....#...#.#..#...#..............#...#
.#...#...###.#.....##....#...#...#...........#....
#.#.....#...#.......##.....#.#.#.........#.....#..
.......#...#.........#....#.#.#.............#...#.
....##...#........#.....#.#....##....#....

output:

1

result:

ok single line: '1'

Test #37:

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

input:

50 50
..#...#...#...#...#...#...#...#...#...#...#...#...
...#..##...#.....#...#.#..#...#..............#...#
.#...#.#....##.....##....#...#...#...........#....
#.#.....#...#........#.....#.#.#.........#........
.......#...#........##....#.#.#.............#.....
....##...#........##....#.#....##....#....

output:

1

result:

ok single line: '1'

Test #38:

score: 0
Accepted
time: 8ms
memory: 101856kb

input:

10 10
..#...#...
.......#..
.........#
#.......#.
...#......
..........
.......#..
#.........
..#...#...
...##..#.#

output:

1

result:

ok single line: '1'

Test #39:

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

input:

47 43
#########...#...#####...#...#####...#...###
##########.....#######.....#######.....####
#########.......#####.......#####.......###
#########.......#####.......#####.......###
##########...#..######...#..######...#..###
###..#..#..#..#..#..#..#..#..#..#..#..#...#
####...#..######...#..######.....

output:

1

result:

ok single line: '1'

Subtask #2:

score: 70
Accepted

Dependency #1:

100%
Accepted

Test #40:

score: 70
Accepted
time: 154ms
memory: 210176kb

input:

983 991
#########...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#...#####...#......

output:

1

result:

ok single line: '1'

Test #41:

score: 0
Accepted
time: 165ms
memory: 251204kb

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

1

result:

ok single line: '1'

Test #42:

score: 0
Accepted
time: 183ms
memory: 210012kb

input:

1000 1000
##################################################################################################################################################################################################################################################################################################...

output:

0

result:

ok single line: '0'

Test #43:

score: 0
Accepted
time: 157ms
memory: 289044kb

input:

998 998
...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...

output:

1

result:

ok single line: '1'

Test #44:

score: 0
Accepted
time: 144ms
memory: 286992kb

input:

998 998
#..#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...

output:

0

result:

ok single line: '0'

Test #45:

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

input:

998 998
...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...

output:

1

result:

ok single line: '1'

Test #46:

score: 0
Accepted
time: 163ms
memory: 287164kb

input:

998 998
...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...#...

output:

1

result:

ok single line: '1'

Test #47:

score: 0
Accepted
time: 325ms
memory: 200976kb

input:

1000 1000
.....................................................................................................................................................................................................................................................................................................

output:

0

result:

ok single line: '0'

Test #48:

score: 0
Accepted
time: 354ms
memory: 240328kb

input:

1000 1000
.............................................................................................................................................................................#............................................................#..................#.......................................

output:

0

result:

ok single line: '0'

Test #49:

score: 0
Accepted
time: 363ms
memory: 241244kb

input:

1000 1000
.....#....#............................#...................#.###.........#.......#.#..#.......#................#.#............................#...#..............#.#........#.....#..........#.##.....#....#.......#.#...................##.........##...#.##.................#......#........#......

output:

0

result:

ok single line: '0'

Test #50:

score: 0
Accepted
time: 233ms
memory: 188700kb

input:

1000 1000
#.########......#.#....#...#..#...#.#............#..#..#.##.#.##.##...#..#...#..###....##.##.####....#....#.#.###....##.###.###...#.....#..##..##..#.#..#.###.###.#.#.....#.##........#...#.#...#.#.######.#...#.#.#..##.##.##........#.##..##...##.#####...#.####.#..#.#.##.....#....##....#.##.#...

output:

0

result:

ok single line: '0'