This commit is contained in:
Zofia Bączyk 2020-11-22 15:07:15 +01:00
parent 59b10f7a53
commit 0b458818d6
2 changed files with 9 additions and 0 deletions

0
TaskC40/Makefile Normal file
View File

9
TaskC40/run Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/python3
import sys
import re
for line in sys.stdin:
if re.match(r'(1\sroczek$)|([2-4]\slatka$)|([4]\slata$)|([5-9]\slat$)|([1][0-9]\slat$)|([2-9][0-1]\slat$)|([2-9][2-4]\slata$)|([2-9][5-9]\slat$)|([1][0][0-1]\slat$)|([1][0][2-4]\slata$)|([1][0][5-9]\slat$)|([1][1][0]\slat$)',line):
print("yes")
else: print("no")