Zrobiono zadanie C06

This commit is contained in:
s450026 2020-11-15 16:47:16 +01:00
parent 84628ae22e
commit fa142f084c
4 changed files with 16 additions and 1 deletions

13
TaskC06/C06.py Normal file
View 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
View File

2
TaskC06/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
python3 TaskC06/C06.py "$@"

View File

@ -1,2 +1,2 @@
POINTS
10
12

1 POINTS
2 10 12