add solution for TaskC38

This commit is contained in:
kjubik 2025-01-06 17:20:56 +01:00
parent d58a672aa5
commit f3d618b8be

9
TaskC38_TODO/solution.py Normal file
View File

@ -0,0 +1,9 @@
import re
import sys
for line in sys.stdin:
match = re.match(r'^(ul\.|os\.|al\.)\s[A-ZĄĘÓĆŁŃŚŹŻ][a-ząęóćłńśźż]+\s([1-9]\d*)(\/[1-9]\d*|\sm\.\s[1-9]\d*)?$', line)
if match:
print(match.group(2))
else:
print("<NONE>")