
学习收集
凉粥
这个作者很懒,什么都没留下…
展开
-
学习资料收集
#include #define maxn 10001using namespace std;int sum[maxn << 2];int order, x, y;void build(int t, int l, int r) { int m = (l + r) >> 1; if (l == r) scanf("%d", sum + t); else {原创 2014-07-11 09:42:09 · 290 阅读 · 0 评论 -
和差值最小的数组划分问题
Problem 1:Balanced PartitionYou have a set, A = {a1,···, an}, of n integers. Partition these integers into two subsets such that you minimize |S1 − S2|, where S1 and S2 denote the sums of the eleme转载 2015-05-19 20:12:59 · 883 阅读 · 0 评论