题号:NC52863
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
Special Judge, 64bit IO Format: %lld
题目描述
Bobo has an

picture consists of black and white pixels.
He loves the picture so he would like to scale it

times.
That is, to replace each pixel with

block of pixels with the same color (see the example for clarity).
输入描述:
The input contains zero or more test cases and is terminated by end-of-file. For each test case,
The first line contains four integers n, m, a, b.
The i-th of the following n lines contains a binary string of length m which denotes the i-th row of the original picture. Character "`0`" stands for a white pixel while the character "`1`" stands for black one.
* 
* The number of tests cases does not exceed 10.
输出描述:
For each case, output
rows and
columns which denote the result.
示例1
输入
复制
2 2 1 1
10
11
2 2 2 2
10
11
2 2 2 3
10
11
输出
复制
10
11
1100
1100
1111
1111
111000
111000
111111
111111