You are viewing a single comment's thread. Return to all comments →
import math import os import random import re import sys s=str() l=list() size=input().split() n=int(size[0]) m=int(size[1]) for _ in range(n): a=input() l.append(a) for j in range(m): for i in l: s+=i[j] r=re.sub(r"(?<=[a-zA-Z])[^a-zA-Z]+(?=[a-zA-Z])"," ",s) print(r)
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 →