文件名称:chengxu
介绍说明--下载内容来自于网络,使用问题请自行百度
找出蛋糕的制作方案(适当的Ri和Hi的值),使S最小。
输入
有两行,第一行为N(N<=10000),表示待制作的蛋糕的体积为Nπ;第二行为M(M<=20),表示蛋糕的层数为M。
输出
仅一行,是一个正整数S(若无解则S=0)。-Find recipe program (appropriate value of Ri and Hi), the S minimum. Enter the two lines, first line N (N < = 10000), said to be the volume of cake produced Nπ second line M (M < = 20), that the cake layers for the M. Output only line, is a positive integer S (without solutions is S = 0).
输入
有两行,第一行为N(N<=10000),表示待制作的蛋糕的体积为Nπ;第二行为M(M<=20),表示蛋糕的层数为M。
输出
仅一行,是一个正整数S(若无解则S=0)。-Find recipe program (appropriate value of Ri and Hi), the S minimum. Enter the two lines, first line N (N < = 10000), said to be the volume of cake produced Nπ second line M (M < = 20), that the cake layers for the M. Output only line, is a positive integer S (without solutions is S = 0).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
chengxu.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.