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/06/23 16:32:23
![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](/uploads/image/z/6113228-68-8.jpg?t=C%E8%AF%AD%E8%A8%80acm%E5%88%9D%E7%BA%A7%E9%A2%98%2C%E4%B8%8B%E9%9D%A2%E8%BF%99%E4%B8%AA%E9%A2%98%E6%9C%89%E6%B2%A1%E6%9C%89%E5%A5%BD%E7%9A%84%E6%80%9D%E8%B7%AF+Points+cakes+%E6%97%B6%E9%97%B4%E9%99%90%E5%88%B6%28%E6%99%AE%E9%80%9A%2FJava%29%3A1000MS%2F3000MS+%E8%BF%90%E8%A1%8C%E5%86%85%E5%AD%98%E9%99%90%E5%88%B6%3A65536KByte%E6%80%BB%E6%8F%90%E4%BA%A4%3A11+%E6%B5%8B%E8%AF%95%E9%80%9A%E8%BF%87%3A8+%E6%8F%8F%E8%BF%B0A+mother+has+n+different+sizes+of+cake%2Cshe+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
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.