摘要:
列方程可知,最小点一定在给定的某点上先排序后枚举计算某点的权值枚举可以由前面的推出后面的,不必重复计算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 阅读(327) 评论(0) 推荐(0)
浙公网安备 33010602011771号