This commit is contained in:
Zofia Bączyk 2020-11-22 16:16:36 +01:00
parent 5fa160e9dd
commit 619de96228
2 changed files with 9 additions and 0 deletions

0
TaskC04/Makefile Normal file
View File

9
TaskC04/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'(555\s[0-9][0-9][0-9]\s|[0-9][0-9][0-9]$)|(555(-)[0-9][0-9][0-9](-)|[0-9][0-9][0-9]$)',line):
print("yes")
else: print("no")