-->
当前位置:首页 > 题库

PROGRAMMING:Find the area where two circles intersect

Luz5年前 (2021-05-10)题库382
Given the center coordinates and radius of two circles, the intersection area of two circles is calculated and output. If it is circumscribed or not intersected, 0 is output, and the function value ACOS (- 1) is taken as the circumference ratio.
###Input format:
Enter six integers x1, Y1, R1, X2, Y2, R2 to represent the center (x1, Y1), (X2, Y2) and radius R1, R2 of the two circles respectively.
###Output format:
According to the position relationship of the circle, output the area of its intersection part (keep 2 decimal places).
###Input example:
Two sets of inputs are given here. For example:
```in
0 0 1 2 2 1
```
```in
2 0 2 5 2 3
```
###Output example:
The corresponding output is given here. For example:
```out
zero
```
```out
three point two two
```






answer:If there is no answer, please comment