Bold
의견: 0
In addition to the usual a\(ge-re\)lated health problems such as first signs of RSI ^{1} and physical injuries that
accumulate faster than they heal, Daniel’s eyesight has suddenly worsened.
Paula wrote him a letter, but he can’t read it without glasses. She needs to bold the text, so Daniel can
read it.
The letter can be represented as a matrix consisting of characters ’.’ and ’#’. To bold it, Paula will
replace each ’#’ in the original letter with a \(2 \times 2\) square of ’#’ in the do\(wn-ri\)ght direction.
The first line contains integers \(n\) and \(m\) (\(2 \le n\), \(m \le 100\)), the dimensions of the letter.
Each of the following \(n\) lines contains \(m\) characters ’.’ and ’#’ that represent Paula’s letter.
The last row and column won’t contain any ’#’.
Output \(n\) lines containing \(m\) characters ’.’ and ’#’, representing the bold letter.
4 4
....
.#..
....
....
....
.##.
.##.
....
7 7
.......
.####..
.#...#.
.#...#.
.#...#.
.####..
.......
.......
.#####.
.######
.##..##
.##..##
.######
.#####.
9 7
.......
.####..
.#...#.
.#...#.
.####..
.#.....
.#.....
.#.....
.......
.......
.#####.
.######
.##..##
.######
.#####.
.##....
.##....
.##....
평가 및 의견
Bold
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Bold