CF342C.Cupboard and Balloons

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

A girl named Xenia has a cupboard that looks like an arc from ahead. The arc is made of a semicircle with radius rr (the cupboard's top) and two walls of height hh (the cupboard's sides). The cupboard's depth is rr , that is, it looks like a rectangle with base rr and height h+rh+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.

输入格式

The single line contains two integers r,hr,h (1<=r,h<=107)(1<=r,h<=10^{7}) .

输出格式

Print a single integer — the maximum number of balloons Xenia can put in the cupboard.

输入输出样例

  • 输入#1

    1 1
    

    输出#1

    3
    
  • 输入#2

    1 2
    

    输出#2

    5
    
  • 输入#3

    2 1
    

    输出#3

    2
    
首页