This commit is contained in:
s473575 2023-12-10 19:09:40 +01:00
parent a8350f1156
commit ef113e811d
8 changed files with 92 additions and 0 deletions

9
TaskE05/run.py Normal file
View File

@ -0,0 +1,9 @@
import re
import sys
for line in sys.stdin:
stripped_line = line.strip()
if re.search(r'^(PCMCIA|WYSIWYG|[A-Z]{2,5})$', stripped_line):
print('yes')
else:
print('no')

11
TaskE05/test.out Normal file
View File

@ -0,0 +1,11 @@
no
yes
yes
no
yes
yes
no
no
no
yes
yes

9
TaskE22/run.py Normal file
View File

@ -0,0 +1,9 @@
import re
import sys
for line in sys.stdin:
stripped_line = line.strip()
if re.search(r'^(?:[0-9]|10):(?:[0-9]|10)$', stripped_line):
print('yes')
else:
print('no')

11
TaskE22/test.out Normal file
View File

@ -0,0 +1,11 @@
yes
yes
no
yes
no
no
no
yes
yes
no
no

11
TaskE39/run.py Normal file
View File

@ -0,0 +1,11 @@
import re
import sys
for line in sys.stdin:
stripped_line = line.strip()
if re.search(r'^(?!.*0.*0.*$)[0-9]{6}$', stripped_line):
print('yes')
else:
print('no')
# bez negacji ^(0[1-9]{5}|[1-9]0[1-9]{4}|[1-9]{2}0[1-9]{3}|[1-9]{3}0[1-9]{2}|[1-9]{4}0[1-9]{1}|[1-9]{5}0|[1-9]{6})$

12
TaskE39/test.out Normal file
View File

@ -0,0 +1,12 @@
no
yes
no
yes
yes
yes
no
yes
yes
yes
no
no

15
TaskE45/run.py Normal file
View File

@ -0,0 +1,15 @@
import re
import sys
for line in sys.stdin:
stripped_line = line.strip()
words = stripped_line.split(' ')
if (len(words) == 2) and (len(words[1]) > 1):
if re.match(r'((?!.*a$)([A-Z]|Ł)[a-ząćęłńóśźż]+|Jarema|Kosma)$', words[0]):
print(words[1])
else:
print('<NONE>')
else:
print('<NONE>')

14
TaskE45/test.out Normal file
View File

@ -0,0 +1,14 @@
<NONE>
<NONE>
<NONE>
<NONE>
Nowak
Ścież
Źdźbło
<NONE>
Xa
<NONE>
<NONE>
<NONE>
<NONE>
<NONE>