Okviri
의견: 0
"Peter Pan frames" are a way of decorating text in which every character is framed by a diamond-shaped frame, with the frames of neighbouring characters interleaving. A Peter Pan frame for one letter looks like this (X is the letter being framed):
..#..
.#.#.
#.X.#
.#.#.
..#..
However, such a framing would be somewhat dull, so we frame every third letter using a "Wendy frame" instead. A Wendy frame looks like this:
..*..
.*.*.
*.X.*
.*.*.
..*..
When a Wendy frame interleaves with a Peter Pan frame, the Wendy frame (being much nicer) is put on top. See the sample cases for an example of the interleaving.
The first and only line of input contains at most \(5\) capital letters of the English alphabet.
Output the word written using Peter Pan and Wendy frames, on \(5\) lines.
| 서브태스크 | 점수 | 설명 |
|---|---|---|
Subtask 1 | 30점 |
A..#..
.#.#.
#.A.#
.#.#.
..#..DOG..#...#...*..
.#.#.#.#.*.*.
#.D.#.O.*.G.*
.#.#.#.#.*.*.
..#...#...*..ABCD..#...#...*...#..
.#.#.#.#.*.*.#.#.
#.A.#.B.*.C.*.D.#
.#.#.#.#.*.*.#.#.
..#...#...*...#..평가 및 의견
Okviri
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Okviri