#C3970. Date Range Analyzer
Date Range Analyzer
Date Range Analyzer
You are given a list of date strings in the format (YYYY-MM-DD) and two dates which define an inclusive range. Your task is to determine the earliest date and the latest date from the list, as well as count how many dates lie within the given range. The dates follow the format (\texttt{YYYY-MM-DD}), which means that they are comparable as strings. Use the range provided to count the number of dates (d) that satisfy (\texttt{range_start} \leq d \leq \texttt{range_end}).
inputFormat
The input is read from standard input (stdin) and has the following format:\
- An integer (n) representing the number of dates.\
- (n) lines each containing a date string in the format (YYYY-MM-DD).\
- A single line containing two date strings separated by a space: the start and the end date of the range.
outputFormat
The output should be printed to standard output (stdout) in a single line containing three values: the earliest date, the latest date, and the count of dates that fall within the inclusive range. Each value is separated by a single space.## sample
4
2023-01-01
2023-01-05
2023-01-10
2023-01-15
2023-01-05 2023-01-10
2023-01-01 2023-01-15 2