All problems

Non-Overlapping Points With swarmplot

mediumPythonSeabornswarmplot

The Ravensworth Group's review chart lays every score out as its own dot, and rather than nudging overlapping dots at random it shifts them apart just enough that none overlap at all. Team B's entry in the summary table is its best score, and the table has to render even in the months when team B filed nothing.

Task: Print the highest score recorded by team B.

Input

The first line holds one integer n, the number of records, where 1 <= n <= 1000. Then come n lines, each holding a team label and a score separated by a single space. Team labels contain no spaces. Team B may have no records at all.

Output

One line holding team B's highest score, rounded to 2 decimal places. If team B has no records, print 0.00.

Example:

Input:
4
A 10
B 20
B 50
A 5

Output:
50.00

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…