摘要: n个点(n<=1000)大小范围[0,100],改变一些点的值,使得极差不超过17,代价为改变值的平方。 枚举修改后的最低高度low,维护最小代价。 阅读全文
posted @ 2016-09-27 18:58 水郁 阅读(448) 评论(0) 推荐(0) 编辑
摘要: /* LANG: C++ TASK: wormhole n个洞,n #include #include using namespace std; #define N 15 int n,to[N],v[N],ans,vis[N]; struct node{ int x,y,id; }a[N]; int cmp(node a,node b){ return a.xn){ ... 阅读全文
posted @ 2016-09-27 16:50 水郁 阅读(223) 评论(0) 推荐(0) 编辑
……