update
This commit is contained in:
parent
d80adf4e0f
commit
2e63e7e82c
9
TaskE03/run.py
Normal file
9
TaskE03/run.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
numbers = re.fullmatch(r"(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3})", line.replace("\n", ""), flags=re.IGNORECASE)
|
||||||
|
if numbers:
|
||||||
|
print("yes")
|
||||||
|
else:
|
||||||
|
print("no")
|
9
TaskE20/run.py
Normal file
9
TaskE20/run.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
numbers = re.match(r'^(0?[0-9]{2}) (\d{1}-\d{3}-\d{3})$', line.replace("\n", ""), flags=re.IGNORECASE)
|
||||||
|
if numbers:
|
||||||
|
print(numbers)
|
||||||
|
else:
|
||||||
|
print("<NONE>")
|
9
TaskE42/run.py
Normal file
9
TaskE42/run.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
str = re.match(r'(NIE|NO).*[EO]{6,}.*!!!.*', line.replace("\n", ""), flags=re.IGNORECASE)
|
||||||
|
if str:
|
||||||
|
print('yes')
|
||||||
|
else:
|
||||||
|
print("no")
|
9
TaskE48/run.py
Normal file
9
TaskE48/run.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
numbers = re.match(r'^[a-ząćęłńóśźżA-ZĄĆĘŁŃÓŚŹŻ]([a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ]*[a-zA-ZąćęłńóśźżĄĆĘŁŃÓŚŹŻ])?$', line.replace("\n", ""), flags=re.IGNORECASE)
|
||||||
|
if numbers:
|
||||||
|
print('yes')
|
||||||
|
else:
|
||||||
|
print("no")
|
Loading…
Reference in New Issue
Block a user