#C12297. Filter Strings by Length

    ID: 41708 Type: Default 1000ms 256MiB

Filter Strings by Length

Filter Strings by Length

Problem Description:

Given a list of strings and an integer \( n \), output all the strings whose lengths are strictly greater than \( n \). The order of the strings must be preserved as in the input. If no string meets the criteria, do not output anything.

Note: Use LaTeX format for any formulas, e.g., \( n \).

inputFormat

Input Format:

The first line contains two integers \( m \) and \( n \), where \( m \) represents the number of strings, and \( n \) is the length threshold. This is followed by \( m \) lines, each containing one non-empty string.

outputFormat

Output Format:

Output each string whose length is greater than \( n \) on a separate line. If none of the strings satisfy the condition, output nothing.

## sample
4 5
apple
banana
kiwi
blueberry
banana

blueberry

</p>