From bc9c52edd54fb23d81b464e664f4e29318caa5a6 Mon Sep 17 00:00:00 2001 From: kjubik Date: Mon, 6 Jan 2025 17:35:59 +0100 Subject: [PATCH] add solution for TaskC45 --- TaskC45_TODO/solution.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 TaskC45_TODO/solution.py diff --git a/TaskC45_TODO/solution.py b/TaskC45_TODO/solution.py new file mode 100644 index 0000000..51b13c6 --- /dev/null +++ b/TaskC45_TODO/solution.py @@ -0,0 +1,9 @@ +import re +import sys + +for line in sys.stdin: + match = re.match(r'^([A-ZĆŁŚŹŻ][a-ząęóćłśńźż]*[b-ząęóćłśńźż]|Kosma|Jarema)\s([A-ZĆŁŚŹŻ][a-ząęóćłśńźż]+)$', line) + if match: + print(match.group(2)) + else: + print("")