atempt 1
This commit is contained in:
parent
b3f0171aeb
commit
b996cb9eb1
0
TaskD05/Makefile
Normal file
0
TaskD05/Makefile
Normal file
8
TaskD05/run
Normal file
8
TaskD05/run
Normal 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'))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user