CODECODE - Coder Or NonCoder

no tags 

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.


First line of the input contains an integer 0<t<10000, number of testcases.

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


For each testcase in a new line, print the probabality(rounded upto 2 digits after decimal point) in persentage with a persentage sign.


5 90
12 25


hide comments
unknown_user: 2019-01-07 15:22:34

learned the use of set precision

tarungupta1956: 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

Added by:Safayet
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)