Labeling a Threshold Line
Harbourline Retail sets one delivery-time target for the whole region, and each depot is charted as a bar against a horizontal line drawn at that target. A line with no words next to it gets read as "average" or "last year" by whoever is in the room, so the line is labelled — and the summary underneath states plainly how many depots sat above it.
Task: Print how many readings are above the target.
Input
The first line holds the target, a number. The second line holds one integer n, the number of depots. Each of the next n lines holds one depot's reading, a number on its own.
Output
One line holding a single whole number: the count of readings above the target. A reading exactly equal to the target does not count. Print 0 when none qualify.
Example:
Input:
50
4
30
60
70
20
Output:
2
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