Marathon

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

Erik wants to run a marathon. Most of all, he wants to win the race. To plan his training, he has looked up how the other contestants performed in previous races and made a model to predict his chances of winning. The finishing time for each contestant is distributed uniformly at random in an interval \[a_i,b_i]\[a\_i, b\_i]. What is the largest finishing time Erik can have while still having a 5050\\% change of winning?

입력

The first line contains an integer 1N1051 \leq N \leq 10^5, the number of other contestants. Then follows NN lines, each with two floating point values 0a_i1050 \leq a\_i \leq 10^5 and a_ib_i105a\_i \le b\_i \leq 10^5 with at exactly one decimal place, the start and end time in seconds for their finishing time.

출력

A single floating point number, the largest finishing time in seconds that Erik needs to have a 5050\\% chance of winning. The answer must be with a relative or absolute error of at most 10610^{-6}.