摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4717说明下为啥满足三分:设y=f(x) (x>0)表示任意两个点的距离随时间x的增长,距离y的变化。则f(x)函数单调性有两种:1.先单减,后单增。2.一直单增。设y=m(x) (x>0)表示随时间x的增长,所有点的最大距离y的变化。即m(x)是所有点对构成的f(x)图像取最上面的部分。则m(x)的单调性也只有两种可能:1.先单减,后单增。2.一直单增。 这个地方的证明可以这样:假如时刻t1到时刻t2最大值取得是函数f1(x)的图像,在时刻t2到时刻t3取得是f2(x)的图像,那么由图 阅读全文
posted @ 2013-09-11 21:59 等待最好的两个人 阅读(400) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#includeusing namespace std;const double eps = 1e-8;const double PI = acos(-1.0);const double INF = 100000000.000000;struct Point{ int index; double x,y; Point(double x=0, double y=0) : x(x),y(y){ } //构造函数};typedef Point Vector;Vector operator + (V... 阅读全文
posted @ 2013-09-11 10:28 等待最好的两个人 阅读(160) 评论(0) 推荐(0) 编辑