#Lutece2829. 生日蛋糕
生日蛋糕
Migrated from Lutece 2829 生日蛋糕
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
瓜皮大哥想要定做一个生日蛋糕。
生日蛋糕是一个体积为 的 层蛋糕,每层都是一个圆柱体。
设从下往上数第 个蛋糕是半径为 ,高度为 的圆柱。当 时,要求 且 。由于要在蛋糕上抹奶油,为尽可能节约经费,我们希望蛋糕外表面(最下一层的下底面除外)的面积 最小。
令 ,请编程对给出的 和 ,找出蛋糕的制作方案(适当的 和 的值),使 最小。(除 外,以上所有数据皆为正整数)
Input
第一行为 ,表示待制作的蛋糕的体积为 ;
第二行为 ,表示蛋糕的层数为 。
Output
输出一个整数 (若无解则 )
Samples
100
2
68
Constraints
Resources
2022 UESTC ICPC Training for String and Search Algorithm