#C6603. Score Filtering Problem
Score Filtering Problem
Score Filtering Problem
Problem Statement:
You are given a list of integer scores and two threshold values: high_threshold and low_threshold. Your task is to filter the given scores into two categories:
- The first list should contain all scores that are greater than high_threshold (i.e. \(score > high\_threshold\)).
- The second list should contain all scores that are less than low_threshold (i.e. \(score < low\_threshold\)).
If there are no scores satisfying a condition, output an empty line for that list. Read the input from standard input and write the output to standard output.
Example:
Input: 5 90 85 70 65 50 75 60</p>Output: 90 85 50
inputFormat
Input Format:
- The first line contains an integer \(n\), the number of scores.
- The second line contains \(n\) space-separated integers representing the scores.
- The third line contains two space-separated integers: high_threshold and low_threshold.
All input is to be read from standard input.
outputFormat
Output Format:
- The first line should output the scores greater than high_threshold, separated by a space.
- The second line should output the scores less than low_threshold, separated by a space.
- If a filtered list is empty, output an empty line.
All output is to be printed to standard output.
## sample5
90 85 70 65 50
75 60
90 85
50
</p>