【蓝桥杯每日一练】——Cylinder

Cylinder

题目:

Using a sheet of paper and scissors, you can cut out two faces to form a cylinder in the following way:
Cut the paper horizontally (parallel to the shorter side) to get two rectangular parts.
From the first part, cut out a circle of maximum radius. The circle will form the bottom of the cylinder.
Roll the second part up in such a way that it has a perimeter of equal length with the circle’s circumference, and attach one end of the roll to the circle. Note that the roll may have some overlapping parts in order to get the required length of the perimeter.
Given the dimensions of the sheet of paper, can you calculate the biggest possible volume of a cylinder which can be constructed using the procedure described above?

翻译:

‎使用一张纸和剪刀,您可以通过以下方式切出两个面以形成圆柱体:‎
‎水平切割纸张(平行于较短的一面)以获得两个矩形零件。‎
‎从第一部分开始,切出一个最大半径的‎
‎圆。圆圈将形成圆柱体的底部。‎
‎将第二部分向上卷起,使其具有与圆周长相等的周长,并将卷轴的一端连接到圆‎
‎上。请注意,辊子可能有一些重叠的部分,以获得所需的周长长度。‎
‎考虑到纸张的尺寸,您能否计算出可以使用上述程序构建的圆柱体的最大可能‎
‎体积?‎

输入:

The input consists of several test cases. Each test case consists of two numbers w and h (1 ≤ w ≤ h ≤ 100), which indicate the width and height of the sheet of paper.
The last test case is followed by a line containing two zer

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值