摘要:
n个点(n<=1000)大小范围[0,100],改变一些点的值,使得极差不超过17,代价为改变值的平方。 枚举修改后的最低高度low,维护最小代价。 阅读全文
摘要:
/* 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){ ... 阅读全文