logo AlgoBeat OnlineJudge
登录 注册

#214051. [EC Final 2019] Moon

内存限制:256 MiB 时间限制:2000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Let be a sphere with radius and center . Let be points on the surface of . The positions of are fixed while the position of is a uniform random point on the surface of . Let be if there exists a hemisphere of that contains and otherwise. Calculate the expected value of .

输入格式

The first line contains an integer denoting the number of points ().

The -th line of the next lines contains three integers denoting the point ().

It is guaranteed that are distinct.

输出格式

Output the answer.

The answer will be considered correct if its absolute or relative error doesn't exceed .

样例

样例输入 1

3
1 0 0
0 1 0
0 0 1

样例输出 1

0.875000000000