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

21105번 - New Financial Year 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB45839635086.849%

문제

Naomi has spent the past year tracking her doughnut sales. With so many different flavours, some are bound to sell more than others. In order to maximize her sales for the coming year, she keeps track of certain information on each flavor. She tracks exactly $N$ different flavours of doughnuts. For each flavour, she tracks $O,ドル the original price, $P,ドル the new price, and $C,ドル the relative change in price. The relative change in price is computed using the formula $C=100\% \cdot (P-O)/O$.

Unfortunately, during one of her late nights, while analyzing her clipboard of data, she spilled coffee over the entire section of the page that keeps track of the original price of each doughnut flavour.

Can you help Lesley recover her data, specifically $O,ドル the original price of each doughnut flavour?

입력

The first line contains a single integer $N,ドル the number of doughnut flavours (1ドル \le N \le 10^4$).

Each of the following $N$ lines describes one flavour and contains two real numbers $P$ and $C$ (1ドル \le P \le 1000.00,ドル $-1000.00 \le C \le 1000.00$), given to exactly 2 decimal places.

출력

Output $N$ lines. On line $i,ドル print $O,ドル the original price of the $i$-th doughnut flavour, with absolute or relative error at most 10ドル^{-5}$.

제한

예제 입력 1

2
100.00 10.50
50.00 -50.75

예제 출력 1

90.497737557
101.522842640

힌트

출처

Camp > Petrozavodsk Programming Camp > Winter 2021 > Day 7: North American Contest 1 A번

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

출처

대학교 대회

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

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