CODECODE - Coder Or NonCoder

The x% of the students in IUT(International University Of Technology) are Coders. Rest of them are noncoders. A new student got admitted into IUT who has lots of interest in programming. So, he wants to meet some senior coders of IUT. As he does not know who is coder and who is not, but he himself is a coder he has y% possibility of identifying a coder. eg. If he meets Zico_vai, He has a y% possibility that he will identify Zico_vai as coder and (100-y)% possibility that he'll mistake. The similar for non coders is also true. eg. If he meets a noncoder he has y% of possibility to identify him as noncoder and (100-y)% possibility that he'll mistake.

Now, He met a random IUTian, given x and y find the probability that he'll think the guy he met as a coder.

Input

First line of the input contains an integer 0

Next t lines contain two integers each x, y (0<=x, y<=100) described above.

Output

For each testcase in a new line, print the probability (rounded to 2 digits after decimal point) in percentage with a percentage sign.

Example

Input:
2
5 90
12 25

Output:
14.00%
69.00%

Added by:Safayet
Date:2018-11-19
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All

hide comments
2019-11-15 00:50:54 :D
"rounded upto 2 digits after decimal point" - rounding to the nearest value should be used (standard rounding used for C/C++ printf will work properly).
2019-01-07 15:22:34
learned the use of set precision
2018-11-22 05:26:22
@admin seems to be getting WA for the 2nd testcase Any corner case that i may be missing?

update: got it was missing the % sign after probabality

Last edit: 2018-11-22 07:16:09
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.