You are viewing a single comment's thread. Return to all comments →
My solution:
import re n, m = map(int, input().split()) a, b = [], "" for _ in range(n): a.append(input()) for z in zip(*a): b += "".join(z) print(re.sub(r"(?<=\w)([^\w]+)(?=\w)", " ", b))
Seems like cookies are disabled on this browser, please enable them to open this website
Matrix Script
You are viewing a single comment's thread. Return to all comments →
My solution: