Circle
题号:NC214784
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 1024 M,其他语言2048 M
Special Judge, 64bit IO Format: %lld

题目描述

There are points on a circle whose radius is 1. Wowo wants to move the points so that they are equally distanced on the circle. (We say the points are equally distanced when no two points coincide and the convex hull of the points forms a regular polygon.) The points can only be moved on the circle. Please calculate the minimum total distance to move.

输入描述:

The first line contains one integer .

The second line contains numbers, the -th number represents the initial position of the -th point. a_i is the angular coordinate of the -th point in degrees. All numbers have at most 5 digits after the decimal point.

输出描述:

Output one number -- the minimum total distance to move.

Your answer is considered correct if its absolute or relative error does not exceed .
示例1

输入

复制
2
0.00000 0.00000

输出

复制
3.1415926536
示例2

输入

复制
3
0.00000 120.00000 240.00000

输出

复制
0.0000000000