djfz-2020-s444507/TaskD04/run.py

15 lines
155 B
Python
Raw Normal View History

2020-12-06 16:56:44 +01:00
import re
import sys
for line in sys.stdin:
2020-12-06 18:07:42 +01:00
line = re.sub(r'(\D*)([0-9]+)(\D+)([0-9]+)(.*)', r'\1\2\3\5', line, 1)
2020-12-06 16:56:44 +01:00
sys.stdout.write(line)