add solution for TaskC45

This commit is contained in:
kjubik 2025-01-06 17:35:59 +01:00
parent f3d618b8be
commit bc9c52edd5

9
TaskC45_TODO/solution.py Normal file
View File

@ -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("<NONE>")