d04
This commit is contained in:
parent
00b48fc78f
commit
086a27dfa3
0
TaskD04/Makefile
Normal file
0
TaskD04/Makefile
Normal file
2
TaskD04/run
Normal file
2
TaskD04/run
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
python TaskD04/run.py "$@"
|
14
TaskD04/run.py
Normal file
14
TaskD04/run.py
Normal file
@ -0,0 +1,14 @@
|
||||
import re
|
||||
import sys
|
||||
|
||||
for line in sys.stdin:
|
||||
line = re.sub(r'(\D*)([0-9]+)(\D+)([0-9]+).*', r'\1\2\3\5', line)
|
||||
sys.stdout.write(line)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user