Files
kattis/skener.py
2023-07-18 13:29:10 +00:00

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))