add solution for TaskC45
This commit is contained in:
parent
f3d618b8be
commit
bc9c52edd5
9
TaskC45_TODO/solution.py
Normal file
9
TaskC45_TODO/solution.py
Normal 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>")
|
Loading…
Reference in New Issue
Block a user