atempt 1
This commit is contained in:
parent
5fa160e9dd
commit
619de96228
0
TaskC04/Makefile
Normal file
0
TaskC04/Makefile
Normal file
9
TaskC04/run
Normal file
9
TaskC04/run
Normal 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")
|
Loading…
Reference in New Issue
Block a user