atempt 1
This commit is contained in:
parent
59b10f7a53
commit
0b458818d6
0
TaskC40/Makefile
Normal file
0
TaskC40/Makefile
Normal file
9
TaskC40/run
Normal file
9
TaskC40/run
Normal 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")
|
Loading…
Reference in New Issue
Block a user