217. Two Cylinders
time limit per test: 0.5
memory limit per test: 65536
In this problem your task is very simple.
Consider two infinite cylinders in three-dimensional space, of radii R1 and R2 respectively, located in such a way that their axes intersect and are perpendicular.
Your task is to find the volume of their intersection.
Input file contains two real numbers R1 and R2 (1 ≤ R1, R2 ≤ 100);
Output the volume of the intersection of the cylinders. Your answer must be accurate up to 10-4.
|Resource:||Petrozavodsk Summer Trainings 2003
|Server time: 2017-09-20 16:39:21||Online Contester Team © 2002 - 2016. All rights reserved.|