摘要: Read the program below carefully then answer the question. #pragma comment(linker, "/STACK:1024000000,1024000000") #include <cstdio> #include<iostream 阅读全文
posted @ 2017-09-12 18:03 Asimple 阅读(279) 评论(0) 推荐(0)
摘要: 将一堆正整数分为2组,要求2组的和相差最小。 例如:1 2 3 4 5,将1 2 4分为1组,3 5分为1组,两组和相差1,是所有方案中相差最少的。 将一堆正整数分为2组,要求2组的和相差最小。 例如:1 2 3 4 5,将1 2 4分为1组,3 5分为1组,两组和相差1,是所有方案中相差最少的。 阅读全文
posted @ 2017-09-12 15:44 Asimple 阅读(202) 评论(0) 推荐(0)