This commit is contained in:
mxsgd 2023-12-28 12:43:08 +01:00
parent d80adf4e0f
commit 2e63e7e82c
4 changed files with 36 additions and 0 deletions

9
TaskE03/run.py Normal file
View 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
View 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
View 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
View 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")