雕刻时光

just do it……nothing impossible
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年4月20日

摘要: 列方程可知,最小点一定在给定的某点上先排序后枚举计算某点的权值枚举可以由前面的推出后面的,不必重复计算View Code #include<stdio.h>#include<iostream>#include<algorithm>using namespace std;struct data{ double x; int p;}map[15099];int cmp(data a,data b){ return a.x<b.x;}int main(){ int n; scanf("%d",&n); int i; for(i=0 阅读全文

posted @ 2011-04-20 21:57 huhuuu 阅读(314) 评论(0) 推荐(0) 编辑