Stars Drawing (Hard Edition)
1015E21900· candidate master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
6 8....*......**.....*****....**.......*...........
Output
33 4 13 5 23 5 1
Sample 2of 4
Input
5 5.*...****..****..**......
Output
32 2 13 3 13 4 1
Sample 3of 4
Input
5 5.*...***...*....*........
Output
-1
Sample 4of 4
Input
3 3*.*.*.*.*
Output
-1
58%
1015E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)