This commit is contained in:
Zofia Bączyk 2020-12-06 18:12:54 +01:00
parent b3f0171aeb
commit b996cb9eb1
2 changed files with 8 additions and 0 deletions

0
TaskD05/Makefile Normal file
View File

8
TaskD05/run Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/python3
import sys
import re
for line in sys.stdin.readlines():
print((re.sub('(([\W]*[\w\d]+[\W]+[\w\d]+[\W]+)([\w\d]+)(.*$))', lambda m: m.group(2)+'x'*len(m.group(3))+m.group(4), line)).strip('\n'))