acmsguru |
---|
Закончено |
'*'and
'.', where
'*'means blue cell and
'.'means red cell. Output
"NO SOLUTION"(without quotes), if there is no flag which satisfies both coalitions. If there are several solutions, output any of them.
sample input | sample output |
2 2 | *..* .**. .**. *..* |
sample input | sample output |
3 1 | *........ ...*..... ......*.. .*....... ....*.... .......*. ..*...... .....*... ........* |
Название |
---|