No tags yet

No tag edit access

time limit per test: 0.5 sec.

memory limit per test: 65536 KB

memory limit per test: 65536 KB

input: standard

output: standard

output: standard

In this problem your task is very simple.

Consider two infinite cylinders in three-dimensional 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.

Consider two infinite cylinders in three-dimensional space, of radii R

Your task is to find the volume of their intersection.

Input file contains two real numbers R

Output the volume of the intersection of the cylinders. Your answer must be accurate up to 10

Input

1 1

Output

5.3333

Author: | Andrew Stankevich |

Resource: | Petrozavodsk Summer Trainings 2003 |

Date: | 2003-08-30 |

Codeforces (c) Copyright 2010-2019 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Oct/17/2019 22:32:33 (e1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|