АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

11. Circles

Time Limit: 1 seconds
Memory Limit:5000KB
Points:10
View Problem Statistics Submit Problem added Administrator

Ваша задача - написать программу, которая определяет площадь пересечения двух окружностей с точностью до двух знаков после запятой.


Input

В единственной строке находятся разделённые пробелом вещественные числа x1 y1 r1 x2 y2 r2. Они представляют собой координаты центров и радиусы двух окружностей.

Output

Единственное вещественное число - площадь.

Sample

InputOutput
20.0 30.0 15.0 40.0 30.0 30.0608.37

View Problem Statistics Submit Author/source:
Sorted Problems / Mathematics / Geometry /
11. 18. Coins 16. Polygon 894. Rectangles.
Problems from Contests / Trainings of Vologda STU / Training 19.11.2008 /
11. 6. Polynom's Roots 38. Series of Farej
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.28 sec.
© Copyright VSTU, AVT, Nosov D.A.