#P1663. 山
山
Description
Given a mountain as shown in the figure.

You need to place a lamp somewhere on the mountain so that every part of the mountain is visible.
Output the minimum -coordinate. As shown, the + mark indicates the installation point with the minimum -coordinate.
Input Format
The first line contains an integer , indicating that the mountain consists of points.
The next lines, from left to right, describe the mountain. Each line contains two numbers representing a vertex, and it is guaranteed that .
Output Format
Output a single line with the minimum -coordinate. Your answer is considered correct if it differs from the standard answer by no more than .
6
0 0
10 0
11 1
15 1
16 0
25 0
3.00
Hint
Constraints:
of the testdata, .
of the testdata, ; , and the answer is guaranteed to be no more than .
Translated by ChatGPT 5
京公网安备 11011102002149号