All problems

What Percentile Is This Score?

hardPythonNumPyRanking

Every Fenwick College report card carries a line saying where a mark stands in its class. The college's convention is printed on the back of the card, because percentile figures are defined differently in different places: the number is the percentage of the class whose mark is at or below the mark in question. The whole class goes into that percentage, the student's own mark included if it is among the marks given.

Task: Print the target mark's standing, as a percentage of the class.

Input

The first line holds a single integer n, the class size. Each of the next n lines holds one class mark, which may carry decimals. The last line holds the target mark on its own.

Output

One line holding that percentage with exactly one digit after the decimal point. A target at or above every mark in the class prints as 100.0.

Example:

Input:
4
50
60
70
80
60

Output:
50.0

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…