Editorial for WC '18 Contest 3 J3 - R
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.
Submitting an official solution before solving the problem yourself is a bannable offence.
We'll go row by row from top to bottom, determining and outputting each one as we go.
The first row consists of #
's followed by one .
.
The next rows each consist of one #
, followed by .
's, followed by one #
.
The next row is the same as the first row.
Finally, rows remain. The -th of these contains a #
in column and another in column . In other words, it consists of one #
, followed by .
's, followed by one #
, followed by .
's.
Comments