Green spot - 2#298

Green spot - 2

1 секунд
64 мегабайт
Орташа

Two round projectors create two spots on a wall: one blue, and the other yellow. Find the area of the green spot formed by the overlap of these two spots.

Кіріс деректері

The first line contains the coordinates of the center and the radius of the first spot: X_1, Y_1, R_1. The second line contains the coordinates of the center and the radius of the second spot: X_2, Y_2, R_2.

|X_i|, |Y_i|, R_i \leq 10^6

Шығыс деректері

Output a single number: the area of the green spot, with an accuracy of decimal places, according to mathematical calculation rules.

Мысалдар

Мысал 1

Loading
Loading