QOJ.ac

QOJ

Límite de tiempo: 1.0 s Límite de memoria: 32 MB Puntuación total: 30

#17564. SKENER

Estadísticas

解决火柴问题后,Mirko 面临着另一个具有挑战性的问题。他的妈妈命令他阅读《Moja Tajna》杂志上一篇关于克罗地亚娱乐圈最新情侣的文章。这篇文章的字号非常小,Mirko 看不清。幸运的是,Mirko 的衣柜里有一个扫描仪,可以帮他放大文章。

这篇文章是一个由 $R$ 行 $C$ 列字符组成的矩阵。字符包括英文字母、数字和字符 .(英文句号)。Mirko 的扫描仪支持两个参数:$ZR$ 和 $ZC$。它会将扫描到的每个字符替换为一个 $ZR$ 行 $ZC$ 列的矩阵,其中所有元素都与该被扫描的字符相同。

Mirko 发现他的扫描仪软件坏了,所以他需要你的帮助。

输入格式

第一行包含四个整数 $R$、$C$、$ZR$ 和 $ZC$。其中 $R$ 和 $C$ 在 $1$ 到 $50$ 之间,而 $ZR$ 和 $ZC$ 在 $1$ 到 $5$ 之间。

接下来的 $R$ 行中,每行包含 $C$ 个字符,表示《Moja Tajna》杂志上的文章。

输出格式

输出应为一个由 $R \cdot ZR$ 行和 $C \cdot ZC$ 列字符组成的矩阵,即放大后的文章。

样例

输入样例 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.

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.