'hm'
This commit is contained in:
parent
db9c95dcb5
commit
7b8eaaa567
17
TaskX04/run
Normal file
17
TaskX04/run
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
import sys
|
||||||
|
import re
|
||||||
|
|
||||||
|
count = 0
|
||||||
|
|
||||||
|
def is_number(test):
|
||||||
|
pattern = re.compile(r'[0-9] [0-9]+ [a-z](\s\d+.\d+){0,1}')
|
||||||
|
|
||||||
|
result = re.match(pattern, test[:-1])
|
||||||
|
if result:
|
||||||
|
count += 1
|
||||||
|
|
||||||
|
for line in sys.stdin:
|
||||||
|
is_number(line)
|
||||||
|
|
||||||
|
print(count)
|
Loading…
Reference in New Issue
Block a user