Editorial for COCI '20 Contest 6 #1 Bold


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

We make a new n \times m matrix and fill it with .. Then we go through the original matrix, and when we find # on some position (i, j), we put # on positions (i, j), (i, j+1), (i+1, j) and (i+1, j+1) in the new matrix.


Comments

There are no comments at the moment.