You are viewing a single comment's thread. Return to all comments →
import re n, m = map(int, input().split()) matrix = [input() for _ in range(n)] decoded = ''.join(sum(zip(*matrix), ())) pattern = r'(?<=\w)([^\w]+)(?=\w)' print(re.sub(pattern, ' ', decoded))
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 →