Your task is to write a program that computes the number of horizontal lines contained in a given rectangle of characters. We consider that an horizontal line is a sequence of two or more dashes consecutive horizontally.
The input starts with two naturals and , followed by lines, each one with characters. All the characters are dashes and lowercase letters.
Your program must print the number of horizontal lines contained in the given rectangle.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T11:46:42.481Z
© Jutge.org, 2006–2026.
https://jutge.org