포럼
문제 ICPC00206

C. Circular Caramel Cookie

스페셜 저지 — 출력을 사용자 정의 프로그램으로 검사하므로 여러 정답이 인정될 수 있습니다.
설명

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... 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 .

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\leq10^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
출력
2.2360679775
예제 2
입력
59
출력
5.0000000000
문제 정보

생성자가 기록되지 않았습니다.

출처 ICPC NWERC 2022

평가 및 의견

C. Circular Caramel Cookie

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 1 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

C. Circular Caramel Cookie

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8