Zrobiono zadanie C06
This commit is contained in:
parent
84628ae22e
commit
fa142f084c
13
TaskC06/C06.py
Normal file
13
TaskC06/C06.py
Normal file
@ -0,0 +1,13 @@
|
||||
import re
|
||||
import sys
|
||||
|
||||
|
||||
def line_digits_correct(line):
|
||||
return re.search('^([1-9](\d{4}|\d{5}))$', line)
|
||||
|
||||
|
||||
for line in sys.stdin:
|
||||
if line_digits_correct(line):
|
||||
print('yes')
|
||||
else:
|
||||
print('no')
|
0
TaskC06/Makefile
Normal file
0
TaskC06/Makefile
Normal file
2
TaskC06/run
Executable file
2
TaskC06/run
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
python3 TaskC06/C06.py "$@"
|
@ -1,2 +1,2 @@
|
||||
POINTS
|
||||
10
|
||||
12
|
||||
|
|
Loading…
Reference in New Issue
Block a user