A girl named Xenia has a cupboard that looks like an arc from ahead. The arc is made of a semicircle with radius
r (the cupboard's top) and two walls of height
h (the cupboard's sides). The cupboard's depth is
r, that is, it looks like a rectangle with ba
se r and height h+r from the sides. The figure below shows what the cupboard looks like (the front view is on the left, the side view is on the right).
Xenia got lots of balloons for her birthday. The girl hates the mess, so she wants to store the balloons in the cupboard. Luckily, each balloon is a sphere with radius . Help Xenia calculate the maximum number of balloons she can put in her cupboard.
You can say that a balloon is in the cupboard if you can't see any part of the balloon on the left or right view. The balloons in the cupboard can touch each other. It is not allowed to squeeze the balloons or deform them in any way. You can assume that the cupboard's walls are negligibly thin.
C、 橱柜和气球
一个叫Xenia的女孩有一个橱柜,从前面看就像一个弧形。弧形由半径为r的半圆(橱柜顶部)和两个高度为h的墙(橱柜侧面)组成。橱柜的深度为r,也就是说,它看起来像一个长方形,底部为r,从侧面看高度为h+r。下图显示了橱柜的外观(前视图在左侧,侧视图在右侧)。
Xenia在生日时收到了很多气球。女孩讨厌这一团糟,所以她想把气球放在柜子里。幸运的是,每个气球都是一个有半径的球体。帮助Xenia计算她能放在橱柜里的气球的最大数量。
如果你在左视图或右视图中看不到气球的任何部分,你可以说气球在橱柜中。橱柜里的气球可以互相接触。不允许以任何方式挤压气球或使其变形。你可以假设橱柜的墙壁薄得可以忽略不计。