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
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/05 21:47:53
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
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
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
这是基本的DP,建议去看看简单的DP.