|
||||||||||
WarTime Limit: 8000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 458 Accepted Submission(s): 186 Special Judge Problem Description Long long ago there are two countrys in the universe. Each country haves its own manor in 3-dimension space. Country A's manor occupys x^2+y^2+z^2<=R^2. Country B's manor occupys x^2+y^2<=HR^2 && |z|<=HZ. There may be a war between them. The occurrence of a war have a certain probability. We calculate the probability as follow steps. 1. VC=volume of insection manor of A and B. 2. VU=volume of union manor of A and B. 3. probability=VC/VU Input Multi test cases(about 1000000). Each case contain one line. The first line contains three integers R,HR,HZ. Process to end of file. [Technical Specification] 0< R,HR,HZ<=100 Output For each case£Ĵoutput the probability of the war which happens between A and B. The answer should accurate to six decimal places. Sample Input
Sample Output
Source | ||||||||||
|