问题3256--Max Angle

3256: Max Angle

[命题人 : ]
时间限制 : 4.000 sec  内存限制 : 64 MB

题目描述

Given many points in a plane, two players are playing an interesting game. Player1 selects one point A as the vertex of an angle. Then player2 selects other two points B and C. A, B and C are different with each other. Now they get an angle B-A-C. Player1 wants to make the angle as large as possible, while player2 wants to make the angle as small as possible. Now you are supposed to find the max angle player1 can get, assuming play2 is c lever enough.

输入

There are many test cases. In each test case, the first line is an integer n (3 <= n <= 1001), which is the number of points on the plane. Then there are n lines. Each contains two floating number x, y, witch is the coordinate of one point. n <= 0 denotes the end of input.

输出

For each test case, output just one line, containing the max angle player1 can get in degree format. The result should be accurated up to 4 demicals.

样例输入 Copy

3
0 0
2 0
0 5
-1

样例输出 Copy

90.0000