Highlighting Text With a Background Box
Harbourline Retail's cold-storage monitor charts freezer temperatures through the night. When any reading climbs past the safety limit, the chart gets a warning label on a red background so nobody scrolls past it. The overnight paging system does not look at pictures, so the same decision has to be printed as a plain flag.
Task: Print whether any reading went past the limit.
Input
The first line holds one integer n, the number of readings. Each of the next n lines holds one reading, a number on its own. The last line, after all the readings, holds the safety limit.
Output
One line holding True if at least one reading is strictly above the limit, and False otherwise. A reading sitting exactly on the limit does not raise the flag. Capitalise as shown.
Example:
Input:
3
10
20
95
90
Output:
True
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in