Minimum Possible Fruits
Submissions: 56   Accuracy:

39.27%

  Difficulty: Easy   Marks: 2

Among a bunch of fruits, we have recieved an information that more than P% and less than Q% of the total fruits are rotten. The task is to determine the minimum possible number of total fruits.

Input:

The first line of the input contains an integer T denoting the total number of test cases. Then T test cases follow. Each test case consists of a single line containing two space separated numbers, Q followed by P.

Output:
Corresponding to each test case print the desired output in a single line.

Constraints:
1<=T<=10
0.01 ≤ P, Q ≤ 99.99. Numbers are given with 2 digits precision.

Example:
Input:
1
15.5 10

Output:
7

** For More Input/Output Examples Use 'Expected Output' option **

Author: AdityaChatterjee


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.