当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

3558:Easy Geometry

题目描述
There are a set of points in the plane. Dumbear will choose some of them and find the convex hull of the chosen points. For each point, we know that probability that Dumbear will choose it. We want to know the expected number of vertexes the convex hull had.
You can assume that any three points are not in the same line. If the number of the chosen points is smaller than three, we think all the chosen points are vertexes of the convex hull.
输入解释
There are several test cases in the input.
The first line of each test case contains an integer n (1<=n<=1000). n lines follow, each line contains three integers x, y and p (1<=x, y<= 100000, 0 <= p < 100) indicating a point at (x, y) and Dumbear will choose it with probability p%.
The input terminates by end of file marker.
输出解释
For each test case, output the answer rounded to 2 digits after the decimal point.
输入样例
1
1 1 50
3
1 1 99
1 2 99
2 3 0
4
1 1 50
5 1 50
1 5 50
2 2 50
输出样例
0.50
1.98
1.94
来自杭电HDUOJ的附加信息
Author hanshuai@WHU
Recommend zhouzeyong

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-3558

最后修改于 2020-10-25T23:04:44+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
10000/5000MS(Java/Others) 131072/65536K(Java/Others)