cf/mirror

Maximize the Largest Component (Easy Version)

CF
1985H11700· expert2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
1 1
.
4 2
..
#.
#.
.#
3 5
.#.#.
..#..
.#.#.
5 5
#...#
....#
#...#
.....
...##
6 6
.#..#.
#..#..
.#...#
#.#.#.
.#.##.
###..#
6 8
..#....#
.####.#.
###.#..#
.##.#.##
.#.##.##
#..##.#.
Output
1
6
9
11
15
30
1985H1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…