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

20761번 - Alloys 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB3041068935.039%

문제

Pelle is building a new advanced underground drill. He wants to build the drill out of a new titanium-aluminium-magnesium alloy. Such an alloy can be mixed in many ways. If an alloy is made with the ratios $x, y, z$ ($x + y + z = 1$) of titanium, aluminium and magnesium, the alloy gets a hardness of $xy,ドル and a price of $x + y$ SEK per kilogram.

Pelle only has a fixed amount of money per kilogram that he can spend on alloys for his drills. What is the maximum hardness he can get on his new alloy?

입력

The first and only line of input contains a decimal number $c$ (0ドル \le c < 2,ドル between 1ドル$ and 6ドル$ digits after the decimal point) -- the amount of money in SEK that Pelle can spend per kilogram alloy.

출력

Output a single decimal number, the maximum hardness of Pelle's alloy.

Your answer will be considered correct if you have an absolute error of at most ${10}^{-6}$.

제한

예제 입력 1

1.0

예제 출력 1

0.25

힌트

출처

Contest > Swedish Coding Cup > Sandvik Challenge 2020 A번

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

출처

대학교 대회

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

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