#c22504. 快速集合

快速集合

Quick Gathering

Problem Description

There are nn people on a number line, and they want to gather at a single point. The ii-th person starts at position aia_i and can move at most bib_i units per second. What is the minimum time needed for all nn people to gather at some point?

Input Format

The first line contains an integer nn.

The following nn lines each contain two integers ai,bia_i, b_i.

Output Format

Output one number: the answer. It is accepted if the relative or absolute error is within 10−610^{-6}.

Sample Input

2
1 2
5 2

Sample Output

1.0000000000

Constraints

For 100%100\% of the data, 1≤n≤100000,1≤ai,bi≤1000001 \leq n \leq 100000, 1 \leq a_i, b_i \leq 100000.