当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

6510:Problem K. Harbin Sausage

题目描述
Harbin Sausage is a kind of food usually made from ground meat, such as pork, beef along with salt and spices. The sausage has a history of over 100 years. Because the surface color of it is date red, people call it red sausage or Harbin sausage.
Harbin Sausage is reputable all over the country; it has now become the daily necessity for Harbin people to welcome friends and guests. The procedure is a little bit complicated. First, season the meat and put it in fridge for two or three days. Second, stir the meat with starch till it becomes meatballs. Third, fill the meat into the casing with special tools. Fourth, put it into a toaster oven for 1 hour at most. But the finished product is tasty. You can eat it directly, or match it with other dishes and Harbin beer.
(The above is quoted from http://www.chinatours.com/travel-guide/harbin/food/harbin-sausage.html)
A sausage can be regarded as a cylinder(圆柱体) attached with a hemisphere(半球) in each ends. The height of the cylinder is H, and the radius of both the cylinder and the hemispheres is R. You can see the following three views(三视图) to get a better understanding:

Now you are going to buy a sausage in the Mysterious Sausage Store. Given H and R (both are integers),please calculate how much you should pay. For convenience, the price of per unit volume(单位体积) is set to be 3/Pi(圆周率), and thus the answer is obviously a integer.
输入解释
One line containing H and R, 1 ≤ H, R ≤ 100
输出解释
One line containing the amount of money you should pay for this sausage
输入样例
5 6
输出样例
1404
来自杭电HDUOJ的附加信息
Recommend

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-6510

最后修改于 2020-10-25T23:31:57+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 262144/262144K(Java/Others)