217. Two Cylinders
time limit per test: 0.5
sec.
memory limit per test: 65536
KB
input: standard
output: standard
In this problem your task is very simple.
Consider two infinite cylinders in threedimensional space, of radii R_{1} and R_{2} respectively, located in such a way that their axes intersect and are perpendicular.
Your task is to find the volume of their intersection.
Input
Input file contains two real numbers R_{1} and R_{2} (1 ≤ R_{1}, R_{2} ≤ 100);
Output
Output the volume of the intersection of the cylinders. Your answer must be accurate up to 10^{4}.
Sample test(s)
Input
1 1
Output
5.3333
Author:  Andrew Stankevich

Resource:  Petrozavodsk Summer Trainings 2003

Date:  20030830

Server time: 20180623 20:07:09  Online Contester Team © 2002  2016. All rights reserved. 

