eolymp
bolt
Try our new interface for solving problems
Problems

The Cow-Signal

The Cow-Signal

Bessie and her cow friends are playing as their favorite cow superheroes. Of course, everyone knows that any self-respecting superhero needs a signal to call them to action. Bessie has drawn a special signal on a sheet of $m \times n$ paper, but this is too small, much too small! Bessie wants to amplify the signal so it is exactly $k$ times bigger in each direction. The signal will consist only of the \textbf{'.'} and \textbf{'X'} characters. \InputFile The first line contains $m, n~(1 \le m \le 10, 1 \le n \le 10)$ and $k~(1 \le k \le 10)$. The next $m$ lines each contain a string of length $n$, collectively describing the picture of the signal. \OutputFile You should output $k \times m$ lines, each with $k \times n$ characters, giving a picture of the enlarged signal.
Time limit 1 second
Memory limit 128 MiB
Input example #1
5 4 2
XXX.
X..X
XXX.
X..X
XXX.
Output example #1
XXXXXX..
XXXXXX..
XX....XX
XX....XX
XXXXXX..
XXXXXX..
XX....XX
XX....XX
XXXXXX..
XXXXXX..
Source 2016 USACO December, Bronze