Mountains
면접 대비시간 제한1초메모리 제한512 MB
n개 꼭짓점으로 이루어진 산맥이 주어질 때, 집합 안 어떤 두 꼭짓점을 이어도 그 사이에 두 점을 잇는 선분보다 높은 꼭짓점이 존재하도록 하는 가장 큰 꼭짓점 집합의 크기를 구한다.
문제
Tahmuras, the third king of ancient Persia, has conquered a huge army of deevs (demons). He wants to imprison as many of them as possible in Alborz mountains and let the others go. Alborz is a mountain range with a skyline that looks like a polygonal chain with vertices. The -th vertex (for all ) has coordinates , i.e. with longitude and altitude .
The deevs can be imprisoned on different vertices. No two imprisoned deevs should be able to see each other; otherwise, they will make eye contact and plan to escape. Two deevs cannot see each other if there is at least one vertex between them that is strictly higher than a line connecting their vertices.
In the following figure, a deev on vertex can see deevs on vertices and . But it cannot see deevs on vertices , and , since vertex is higher than the line connecting vertex to any of vertices , , or .

Your task is to help Tahmuras find the maximum number of deevs that can be imprisoned in Alborz mountains.
제한
- ,
- (for all ).
예제
이 문제는 공개된 예제가 없습니다.