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

24751번 - Betting 스페셜 저지다국어

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

문제

The popular streaming platform switch.tv just unveiled their newest feature: switch betting. Streamers can now get their viewers to bet on two different options using switch points (patented).

Each viewer bets some number of switch points for one of the two options. The total amount of switch points bet by everyone is called the prize pool. The streamer will choose one of the options as the winner and the prize pool is split (not necessarily equally) between all the viewers who bet on that option; the more you bet on the option, the more of the prize pool you receive. In particular, if you contributed $p\%$ of all the bets for one of the options and that option wins, then you receive $p\%$ of the total prize pool.

The switch.tv team has come to you to compute what the switch point payout is for each viewer if their selected option wins. To do this, they ask you to find the switch-payout-ratio for each of the two options. Since the payout to each viewer is proportional to the number of switch points they put into the bet, the switch team will be able to use this ratio to determine each viewer's winnings.

For example, suppose a streamer created a switch bet where three viewers participated. Two viewers bet 10ドル$ and 30ドル$ switch points on option one and the last viewer bets 10ドル$ switch points on option two. We can see that option one has 80ドル\%$ of the bets and option two has 20ドル\%$ of the bets.

If option one wins, then the two viewers who bet on that receive 12ドル.5$ and 37ドル.5$ switch points, respectively, which means that the switch-payout-ratio is 1ドル$:1ドル.25$ for option one. If option two wins, then the single viewer who bets on that receives 50 switch points, which means that the switch-payout-ratio is 1ドル$:5ドル$.

Given the percentage of total bets for option one, help switch.tv by computing the switch-payout-ratio for the two options.

입력

The input consists of one integer $a$ (0ドル < a < 100$), which is the percentage of switch points bet on option one.

출력

For each option (option one, then option two), display the number x such that 1:x is the switch-payout-ratio for that option. Your answer should have an absolute or relative error of at most 10ドル^{-3}$.

제한

예제 입력 1

80

예제 출력 1

1.2500000000
5.0000000000

예제 입력 2

15

예제 출력 2

6.6666666667
1.1764705882

힌트

출처

ICPC > Regionals > North America > Rocky Mountain Regional > 2021 Rocky Mountain Regional Contest A번

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

출처

대학교 대회

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

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