atempt 1
This commit is contained in:
parent
0b458818d6
commit
5fa160e9dd
0
TaskC44/Makefile
Normal file
0
TaskC44/Makefile
Normal file
13
TaskC44/run
Normal file
13
TaskC44/run
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
if re.match(r'([A-ZĆŚŁŹŻ][a-ząćęłńóśźż]*[a]\s([A-ZĆŚŁŹŻ][a-ząćęłńóśźż]+)+$)',line):
|
||||||
|
if re.match(r'(Kosma|Jarema)',line):
|
||||||
|
print("<NONE>")
|
||||||
|
else:
|
||||||
|
name = line.split()
|
||||||
|
print(name[len(name)-1])
|
||||||
|
else: print("<NONE>")
|
Loading…
Reference in New Issue
Block a user