Artistic Souvenir

시간 제한1초메모리 제한1024 MB

요약
원형 디자인의 넓이가 주어질 때, 원 둘레에 1cm 여백을 남기는 정사각형 타일의 최소 넓이를 구한다.
난이도

보통10점 중 4점

유형
수학, 기하, 이분 탐색, 구현
정답자
아직 제출이 없습니다

문제

A typical circular design on a square Delft tile.

Delft is world-famous for its blue and white pottery (also known as Delfts blauw), and the earliest pieces date back to the 16th century.

During a stroll in Delft, Christiaan sees a lot of beautifully painted pottery objects like plates, tiles, and vases in the souvenir shops. Inspired by those, he decides to hand paint such a square tile himself. He has already picked a circular design he wants to place in the middle of the tile. He would like to leave a margin of at least 1cm1 \text{cm} around the design. Now, Christiaan just needs to buy a square tile of a suitable size.

Given the area of the circular design, what is the minimum area of the square tile?

입력

The input consists of:

  • One line with an integer aa (1≤a≤10151 \leq a\leq 10^{15}), the area of the circular design in cm2\text{cm}^2.

출력

Output the minimum area of the square tile in cm2\text{cm}^2 that is needed for a design with area aa if Christiaan wants to leave a margin of at least 1cm1 \text{cm} around the design.

Your answer should have an absolute or relative error of at most 10−910^{-9}.

예제2

  1. 예제 1

    입력
    42
    
    예상 출력
    86.7269920446
    
  2. 예제 2

    입력
    20231125
    
    예상 출력
    25779373.7414336279