测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A1039. The CowSignal

编程题 普及/提高-

题目描述

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 ($1 \leq M \leq 10, 1 \leq N \leq 10$), but this is too small, much
too small! Bessie wants to amplify the signal so it is exactly $K$ times
bigger ($1 \leq K \leq 10$) in each direction.
The signal will consist only of the '.' and 'X' characters.

输入格式

The first line of input contains $M$, $N$, and $K$, separated by spaces.
The next $M$ lines each contain a length-$N$ string, collectively describing
the picture of the signal.

输出格式

You should output $KM$ lines, each with $KN$ characters, giving a picture of
the enlarged signal.

输入输出样例

输入 #1
5 4 2
XXX.
X..X
XXX.
X..X
XXX.
输出 #1
XXXXXX..
XXXXXX..
XX....XX
XX....XX
XXXXXX..
XXXXXX..
XX....XX
XX....XX
XXXXXX..
XXXXXX..
上一题 去做题 下一题