All problems

The Threshold Knob

mediumPythonML MetricsConditionals

Harborline's model does not really answer yes or no. For every parcel it returns a number between 0 and 1 — its confidence that something is wrong — and a human still has to decide where to draw the line. The shift manager sets that line by how many inspectors she has on, so she needs to know how much work the choice has just created.

Task: Print how many parcels the cut-off would send to the bench.

Input

The first line holds the cut-off, a decimal number. The second line holds an integer n, the number of parcels. Then come n lines, one confidence score each.

Output

One line: a single whole number. A parcel goes to the bench when its score reaches the cut-off, and a score exactly equal to the cut-off counts as reaching it. Print 0 when nothing does.

Example:

Input:
0.7
5
0.91
0.55
0.70
0.69
0.83

Output:
3

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

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…