Kasana and balls

3.6

9 votes
Problem

krishan kasana likes playing with balls. Now there is grill of A x A and kasana is intrested in knowing whether a ball of radius r passes through it or not. Find the probablity of passing through it

NOTE: report the answer upto 2 decimal points only.

enter image description here

Input
first line contains t representing number of test cases Next T lines comtain A and r

Output
print in a line the output of that test case

Contraints
A<100000
r<100000

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?