C语言acm初级题,下面这个题有没有好的思路

问题描述:

C语言acm初级题,下面这个题有没有好的思路
Points cakes
时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte
总提交:11 测试通过:8
描述
A mother has n different sizes of cake,she wants to give to his two children by a fair way(which may not completely average,but requires minimum),
you can help she solve this problem?
输入
there are many case of testdata,for each testdata,
first line:an integer n(3
1个回答 分类:综合 2014-11-21

问题解答:

我来补答
这是基本的DP,建议去看看简单的DP.
再问: 我知道了 ,这是用母函数。。。
再答: 呵呵!看来你也不是新手哈,哈哈
 
 
展开全文阅读
剩余:2000
上一页:减术分裂
下一页:语文学习与巩固