cf/mirror

Stars Drawing (Hard Edition)

CF
1015E21900· candidate master3s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
6 8
....*...
...**...
..*****.
...**...
....*...
........
Output
3
3 4 1
3 5 2
3 5 1
Sample 2of 4
Input
5 5
.*...
****.
.****
..**.
.....
Output
3
2 2 1
3 3 1
3 4 1
Sample 3of 4
Input
5 5
.*...
***..
.*...
.*...
.....
Output
-1
Sample 4of 4
Input
3 3
*.*
.*.
*.*
Output
-1
1015E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)