djfz-2019/TaskX04/run

9 lines
165 B
Plaintext
Raw Normal View History

2019-11-14 16:54:22 +01:00
#!/usr/bin/python3
import sys
import re
count = 0
for line in sys.stdin:
2019-12-03 13:17:44 +01:00
if re.search("^\d+\s\d+\s[a-z](\s\d+\.\d+){0,1}$", line):
count+=1
2019-11-14 16:54:22 +01:00
print(count)