两圆相交面积 为什么总是wa?两圆相交面积 时间限制(普通/Java):1000MS/10000MS 运行内存限制:65536KByte总提交:404 测试通过:112 描述There are two circles in the plane (shown in the below picture),there is a common area

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 01:01:23

两圆相交面积 为什么总是wa?两圆相交面积 时间限制(普通/Java):1000MS/10000MS 运行内存限制:65536KByte总提交:404 测试通过:112 描述There are two circles in the plane (shown in the below picture),there is a common area
两圆相交面积 为什么总是wa?
两圆相交面积
时间限制(普通/Java):1000MS/10000MS 运行内存限制:65536KByte
总提交:404 测试通过:112
描述
There are two circles in the plane (shown in the below picture),there is a common area between the two circles.The problem is easy that you just tell me the common area.
输入
There are many cases.In each case,there are two lines.Each line has three numbers:the coordinates (X and Y) of the centre of a circle,and the radius of the circle.
输出
For each case,you just print the common area which is rounded to three digits after the decimal point.For more details,just look at the sample.
样例输入
0 0 2
2 2 1
样例输出
0.108
#include
#include
int main()
{
\x05double a,s,d,f,z,x,ss,jiao1,jiao2,l1,l2,r,r1,r2,q=acos(-1);
\x05while(scanf("%lf%lf%lf",&a,&s,&r1)!=EOF)
\x05{ \x05 scanf("%lf%lf%lf",&z,&x,&r2);
r=sqrt((a-z)*(a-z)+(s-x)*(s-x));
if(r>r1+r2||r==r1+r2)
printf("0.000\n");
else if(r=0||r==r1-r2)
printf("%.3f\n",q*r2*r2);
else if(r=0||r==r2-r1)
printf("%.3f\n",q*r1*r1);
else if(r>fabs(r1-r2)&&r

两圆相交面积 为什么总是wa?两圆相交面积 时间限制(普通/Java):1000MS/10000MS 运行内存限制:65536KByte总提交:404 测试通过:112 描述There are two circles in the plane (shown in the below picture),there is a common area
这个太高深了

两圆相交面积 为什么总是wa?两圆相交面积 时间限制(普通/Java):1000MS/10000MS 运行内存限制:65536KByte总提交:404 测试通过:112 描述There are two circles in the plane (shown in the below picture),there is a common area 两圆相交的面积怎么求 两圆相交几何题两圆半径为35,两圆相交,交点不为两圆中心点,求解两圆相交处的面积.怎么计算,望回答. 两圆相交,公共弦有几条 两个圆一组 只求两圆相交那部分面积 求教:两圆相交问题请问:两圆相交,为什么两圆的方程相减,所得的方程就是两圆的相交弦的方程? 两圆相交,求阴影部分面积两圆相交且正好相交于各自的圆心,半径都是10厘米,求阴影部分面积. 三个圆的面积分别是1/4,1/4,1/3,三个圆两两相交且知道两两相交部分的面积都是1/12.求三圆重合面积! 韦恩图,两圆相交表示什么 两圆相交的充要条件,先谢! 两相交圆交点坐标两相交圆,两圆方程相减得的相交直线方程,怎么求相交交点呢 两相交面垂直,则这两个平面内的两条相交线垂直? 不规则图形求面积三个圆半径都是5厘米,两两相交于圆心,求阴影部分面积. 两圆相交,过交点的两半径垂直吗? 两圆相交,过交点的两半径垂直吗? 关于两圆相交,两弦平行的证明 求证:空间不共点且两两相交的四条直线共面“两两相交的四条直线”什么是两两相交? 每个圆的面积10平方厘米,两圆相交的部分4平方厘米,图形覆盖面积19平方厘米,求这个圆相交部分的面积?