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

35071번 - Circular Shortcut 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB65513288.889%

문제

After the practice session, Katrin and her team join the guided city tour of Karlsruhe, where they learn all sorts of random fun facts about Karlsruhe. It is well-known that the first email in Germany was received here (sent by Laura Breeden, MIT) and that the bicycle was invented in Karlsruhe, but did you know that the palace has exactly 365 windows -- one for each day of the year? Or that there may (or may not) be an umbrella buried beneath the great pyramid in the city centre?

Later that evening, Katrin and her team find themselves in the western part of Karlsruhe, and they have to hurry to the Dining Hall to make it in time for dinner! They could take the direct route through the palace garden, which is a straight line. But on such a pleasant evening, the palace garden is crowded with pedestrians and cyclists who might slow them down. The alternative is to follow the Adenauerring, a street forming a perfect half-circle between their current location and the intersection close to the Dining Hall, and nothing will slow them down there.

Map data from OpenStreetMap

Figure C.1: The two possible paths from their current location to the intersection close to the Dining Hall. The blue semi-circular road is the Adenauerring, and the orange straight path in the middle is the route through the palace garden.

Katrin and her team have arranged to meet up with their coach on the intersection close to the Dining Hall, as shown in Figure C.1. They would like to know: how much longer is the route along the Adenauerring?

입력

The input consists of:

  • One line with an integer $d$ (1ドル\leq d\leq 10^9$), the length of the straight way through the palace garden, in metres.

출력

Output how much longer the route along the Adenauerring is, compared to going straight through the palace garden, in metres.

Your answer should have an absolute or relative error of at most 10ドル^{-9}$.

제한

예제 입력 1

2025

예제 출력 1

1155.86256175967

예제 입력 2

123456789

예제 출력 2

70468681.6790926

노트

출처

ICPC > Regionals > Europe > Northwestern European Regional Contest > NWERC 2025 연습 세션 C번

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

출처

대학교 대회

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

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