Write a program that finds the first line in which some lowercase letter appears often enough.
The first line of the input contains a nonnegative integer . Then comes a text of unpredictable length, formed by letters, numbers, spaces, and punctuation symbols, presented in zero or more lines of unpredictable lengths and finished by a line that contains only the single word "END" in uppercase (plus, possibly, arbitrary whitespace).
The output must be the first line of the text in which some lowercase letter appears at least times, followed by another line reporting "In that line, letter ... appears ... times.", with appropriate values in the placeholder ellipses; if several lowercase letters are frequent enough, the first one in alphabetical order is to be reported. In case no line contains such a frequent letter, the output must be the line "No line contains a letter appearing ... times." Pay attention to the finishing period in the output lines.
Author: José Luis Balcázar
Generation: 2026-01-25T16:43:31.796Z
© Jutge.org, 2006–2026.
https://jutge.org