From 3b6370cae92dac7895d4631428883e668c14728f Mon Sep 17 00:00:00 2001 From: BohdanBakhlul Date: Wed, 27 Nov 2019 17:36:29 +0100 Subject: [PATCH] 27_11_commit --- TaskE04/Makefile | 0 TaskE04/run | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 TaskE04/Makefile create mode 100644 TaskE04/run diff --git a/TaskE04/Makefile b/TaskE04/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/TaskE04/run b/TaskE04/run new file mode 100644 index 0000000..b1f6153 --- /dev/null +++ b/TaskE04/run @@ -0,0 +1,8 @@ +#!/usr/bin/python3 + +import sys, re +for line in sys.stdin: + if (re.search(r'(^(0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]$)', line)): + print((line.split(':', 1)[1]).rstrip('\n')) + else: + print('')