#855
Bronze IV
SKENER
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Having solved the match issue, Mirko faced another challenging problem. His mom ordered him to read an article about the newest couples on the Croatian show-biz scene in the "Moja Tajna" magazine. The article is written in a very small font size which Mirko cannot read. Luckily, Mirko has a scanner in the closet which will enlarge the article for him.

The article is a matrix of characters with RR rows and CC columns. The characters are letters of the English alphabet, digits and the character '.' (period). Mirko's scanner supports two parameters, ZRZ_R and ZCZ_C. It substitutes each character it scans with a matrix of ZRZ_R rows and ZCZ_C columns, where all entries are equal to the scanned character.

Mirko realized his scanner's software no longer works so he needs your help.

입력

The first row contains four integers, RR, CC, ZRZ_R and ZCZ_C. RR and CC are between 11 and 5050, while ZRZ_R and ZCZ_C are between 11 and 55.

Each of the following RR rows contains CC characters each, representing the article from "Moja Tajna".

출력

The output should be a matrix of characters with RZRR \cdot Z_R rows and CZCC \cdot Z_C columns, the enlarged article.

예제 입력 1

3 3 1 2
.x.
x.x
.x.

예제 출력 1

..xx..
xx..xx
..xx..

예제 입력 2

3 3 2 1
.x.
x.x
.x.

예제 출력 2

.x.
.x.
x.x
x.x
.x.
.x.
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Bronze IV1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.