17 lines
259 B
Python
17 lines
259 B
Python
r, c, zr, zc = map(int, input().split())
|
|
|
|
rows = []
|
|
for _ in range(r):
|
|
row = input()
|
|
new_row = []
|
|
for c in row:
|
|
new_row += [
|
|
c,
|
|
] * zc
|
|
rows += [
|
|
new_row,
|
|
] * zr
|
|
|
|
for row in rows:
|
|
print("".join(row))
|