Split Game

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

문제

Consider the following game about splitting a simple polygon with NN vertices on a plane. The purpose of this game is using a straight line which passes through the origin to split the given simple polygon into as many non-zero area regions as possible. Please finish the game with the best result possible.

입력

The input consists of N+1N+1 lines. The first line contains an integer NN. The ii-th of the following NN lines consists of two integers x_ix\_i and y_iy\_i indicating the vertices of the given polygon in counter-clockwise order.

출력

Output one integer: the maximum number of non-zero area regions into which the given polygon can be split by a single line passing through the origin.

제한

  • 1N1051 \le N \le 10^5
  • 1x_i,y_i1091 \le x\_i, y\_i \le 10^9
  • if iji \ne j, then (x_i,y_i)(x_j,y_j)(x\_i, y\_i) \ne (x\_j, y\_j)
  • the vertices are given in counter-clockwise order

힌트