Logo
(追記) (追記ここまで)

26176번 - Circular Caramel Cookie 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB205595729.082%

문제

Stroopwafels -- two crispy round waffles with a grid-like pattern on top, separated by a thin layer of gooey and delicious caramel -- are simply the most amazing Dutch treat ever. Everybody loves them and your factory is known for making the best and the biggest stroopwafels in town\dots{} At least, until now.

This year, your archrival Rob had the audacity to open up another factory for stroopwafels and they have already announced that their stroopwafels will be even bigger than yours. Although the exact size of the new stroopwafels is a well-kept secret, your industrial spy managed to find out that the grid-like pattern of the stroopwafel consists of at most $s$ whole squares. You know for a fact that the area of each square is 1ドル \text{cm}^2$ and that the centre point of the stroopwafel always contains the common corner of the four adjacent squares in the centre (i.e., the squares are aligned to a Cartesian grid), as shown in Figure C.1.

Figure C.1: Illustration of Sample Input 2, with the blue-enclosed region depicting the 60ドル$ whole squares that the cookie contains.

Needless to say, there is no way that you will let Rob outdo you and you plan on releasing a new edition of bigger stroopwafels. Since the production of bigger stroopwafels is more expensive, you naturally want to make them as small as possible. Thus, you are interested in the minimum radius of a stroopwafel with strictly more than $s$ squares.

입력

The input consists of:

  • One line with an integer $s$ (1ドル\leq s\leq 10^9$), the number of whole squares Rob's stroopwafel has at most.

출력

Output the minimum radius in centimetres of a stroopwafel with strictly more than $s$ whole squares. Your answer should have an absolute or relative error of at most 10ドル^{-6}$.

제한

예제 입력 1

11

예제 출력 1

2.2360679775

예제 입력 2

59

예제 출력 2

5.0000000000

힌트

출처

ICPC > Regionals > Europe > Northwestern European Regional Contest > NWERC 2022 C번

  • 문제를 만든 사람: Maarten Sijm
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /