RROOT - REAL ROOTS
Anurag is not so good at probability,infact he tends to avoid any probability questions.Bhavik being his friend knows this and also knows that Anurag is excellent with quadratic equations.
In order to help he gives Anurag a quadratic equation of the form x^2+2*b*x+c=0 and asks him to find the probability that the given equation has real roots.
To make this question non-trivial he gives Anurag,side of the square centered at origin assuming values of b and c will not go outside that square given.
Help Anurag to find the probability?
First line contains a number of test cases T(<25).Next T lines contain the side of the square S(<=1000000).
Output the required probability in new line for each case upto 6 decimal places.
just calculate the area of parabola enclosed by upper side of square
Maths Rocx... :)
(Tjandra Satria Gunawan)(æ›¾æ¯…æ˜†):
seems that S is larger than or equal 1.99503924751586370079001 in test data
Simple maths problem... :)
nice ques. mutliple concepts.....Nd with this completed my 50th on Spoj :P
RADHE SHYAM LODHI:
75th ! :D
nice ... @shivam singh ..no spoiler plzzz
for those of you who are stuck...
b and c are only integers?