dfgf
This commit is contained in:
parent
ea189d6428
commit
84e2934f91
0
TaskD05/Makefile
Normal file
0
TaskD05/Makefile
Normal file
12
TaskD05/run
Executable file
12
TaskD05/run
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
for input in sys.stdin.readlines():
|
||||||
|
answer = re.sub('(([\W]*[\w\d]+[\W]+[\w\d]+[\W]+)([\w\d]+)(.*$))', lambda match: match.group(2)+'x'*len(match.group(3))+match.group(4), input)
|
||||||
|
if answer:
|
||||||
|
print(answer[:-1])
|
||||||
|
else:
|
||||||
|
print(input[:-1])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user