二分
a1003zoucun
这个作者很懒,什么都没留下…
展开
-
Dating with girls(1)
题目好坑爹,相同的数竟然可以同时取(个人怀疑数据可能存在负数)。数据量很大建议使用二分查找。点击打开链接 #include #include #include #include #define N 100001 using namespace std; int n,k,a[N],res; void input() { int i; res=0; for(i=0;i原创 2012-10-10 09:43:49 · 424 阅读 · 0 评论 -
简单三分题
点击打开链接#include #include #define inf 0x3f3f3f #define exp 10e-6 using namespace std; struct point { double x,y; }p[10005]; double Min(double a,double b) { return a>b?b:a; } double xie(point原创 2012-12-10 16:58:50 · 360 阅读 · 0 评论