## Wesley's Anger Contest 6 Problem 1 - Timbit Sales

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

Lesley has spent the past year tracking her timbit 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 timbit flavour. She tracks exactly different flavours of timbits. For each flavour, she tracks , the original price, , the new price, and , the relative change in price. The relative change in price is computed using the formula .

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 timbit flavour.

Can you help Lesley recover her data, specifically , the original price of each timbit flavour?

#### Constraints

For this problem, you will be required to pass all the samples in order to receive points.

#### Input Specification

The first line contains a single integer , the number of timbit flavours.

The following lines each contain and , given to exactly decimal places.

#### Output Specification

This problem is graded with a custom checker.

Output lines, on each line , the original price of the timbit flavour. Ensure each line is terminated with a \n character and has no leading nor trailing spaces.

Your answer will be considered correct if it has an absolute or relative error of at most from the reference solution. It is guaranteed that the absolute or relative error of the reference solution is much smaller than from the optimal solution.

#### Sample Input

2
100.00 10.50
50.00 -50.75

#### Sample Output

90.497737557
101.522842640