模拟
文章平均质量分 74
a574380920
这个作者很懒,什么都没留下…
展开
-
【Vijos P1007】绕钉子的长绳子 c++题解
背景平面上有N个圆柱形的大钉子,半径都为R,所有钉子组成一个凸多边形。现在你要用一条绳子把这些钉子围起来,绳子直径忽略不计。描述求出绳子的长度格式输入格式第1行两个数:整数N(1坐标的绝对值不超过100。输出格式一个数,绳子的长度,精确到小数点后2位。以逆时针顺序将N个钉子编号为1~Ndist(i,j)=i号钉子和j号钉子的直线距离则Ans=dist(1,2)+dist(2,3)+........原创 2015-08-18 11:53:20 · 925 阅读 · 0 评论 -
【vijos P1010】清帝之惑之乾隆 c++题解
题目描述Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many computer原创 2015-08-18 19:00:25 · 553 阅读 · 0 评论