AtCoder Beginner Contest 049
翻译中…
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.
翻译中…
样例
Input #1
2 2
*.
.*
Output #1
*.
*.
.*
.*
Input #2
1 4
***.
Output #2
***.
***.
Input #3
9 20
.....***....***.....
....*...*..*...*....
...*.....**.....*...
...*.....*......*...
....*.....*....*....
.....**..*...**.....
.......*..*.*.......
........**.*........
.........**.........
Output #3
.....***....***.....
.....***....***.....
....*...*..*...*....
....*...*..*...*....
...*.....**.....*...
...*.....**.....*...
...*.....*......*...
...*.....*......*...
....*.....*....*....
....*.....*....*....
.....**..*...**.....
.....**..*...**.....
.......*..*.*.......
.......*..*.*.......
........**.*........
........**.*........
.........**.........
.........**.........
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。