From ea189d642838bf07fd96601337e1de48015caba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kijowski=20Micha=C5=82?= Date: Sun, 6 Dec 2020 00:47:49 +0100 Subject: [PATCH] dfgf --- TaskD04/Makefile | 0 TaskD04/run | 12 ++++++++++++ 2 files changed, 12 insertions(+) create mode 100644 TaskD04/Makefile create mode 100755 TaskD04/run diff --git a/TaskD04/Makefile b/TaskD04/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskD04/run b/TaskD04/run new file mode 100755 index 0000000..0034030 --- /dev/null +++ b/TaskD04/run @@ -0,0 +1,12 @@ +#!/usr/bin/python3 + +import sys +import re + +for input in sys.stdin.readlines(): + answer = re.sub('(([\D]*[\d]+[\D]+)[\d]+(.*$))', '\\2\\3',input) + if answer: + print(answer[:-1]) + else: + print(input[:-1]) +