Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 200 点
問題文
縦 H ピクセル、横 W ピクセルの画像があります。全てのピクセルは .
または *
で表されるものとします。上から i 番目、左から j 番目のピクセルを表す文字を C_{i,j} で表します。
この画像を 2 倍縦長にした画像を出力してください。すなわち、縦 2H ピクセル、横 W ピクセルの画像であって、上から i 番目、左から j 番目のピクセルは、C_{(i+1)/2,j} (ただし、割り算は切り捨て)と等しい画像を出力してください。
制約
- 1≦H, W≦100
- C_{i,j}
.
または*
である。
入力
入力は以下の形式で標準入力から与えられる。
H W C_{1,1}...C_{1,W} : C_{H,1}...C_{H,W}
出力
与えられた画像を 2 倍縦長にした画像を出力せよ。
入力例 1
2 2 *. .*
出力例 1
*. *. .* .*
入力例 2
1 4 ***.
出力例 2
***. ***.
入力例 3
9 20 .....***....***..... ....*...*..*...*.... ...*.....**.....*... ...*.....*......*... ....*.....*....*.... .....**..*...**..... .......*..*.*....... ........**.*........ .........**.........
出力例 3
.....***....***..... .....***....***..... ....*...*..*...*.... ....*...*..*...*.... ...*.....**.....*... ...*.....**.....*... ...*.....*......*... ...*.....*......*... ....*.....*....*.... ....*.....*....*.... .....**..*...**..... .....**..*...**..... .......*..*.*....... .......*..*.*....... ........**.*........ ........**.*........ .........**......... .........**.........
Score : 200 points
Problem Statement
There is an image with a height of H pixels and a width of W pixels. Each of the pixels is represented by either .
or *
. The character representing the pixel at the i-th row from the top and the j-th column from the left, is denoted by C_{i,j}.
Extend this image vertically so that its height is doubled. That is, print a image with a height of 2H pixels and a width of W pixels where the pixel at the i-th row and j-th column is equal to C_{(i+1)/2,j} (the result of division is rounded down).
Constraints
- 1≦H, W≦100
- C_{i,j} is either
.
or*
.
Input
The input is given from Standard Input in the following format:
H W C_{1,1}...C_{1,W} : C_{H,1}...C_{H,W}
Output
Print the extended image.
Sample Input 1
2 2 *. .*
Sample Output 1
*. *. .* .*
Sample Input 2
1 4 ***.
Sample Output 2
***. ***.
Sample Input 3
9 20 .....***....***..... ....*...*..*...*.... ...*.....**.....*... ...*.....*......*... ....*.....*....*.... .....**..*...**..... .......*..*.*....... ........**.*........ .........**.........
Sample Output 3
.....***....***..... .....***....***..... ....*...*..*...*.... ....*...*..*...*.... ...*.....**.....*... ...*.....**.....*... ...*.....*......*... ...*.....*......*... ....*.....*....*.... ....*.....*....*.... .....**..*...**..... .....**..*...**..... .......*..*.*....... .......*..*.*....... ........**.*........ ........**.*........ .........**......... .........**.........