标签:
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)2 1 1 2 2 1 1 1 0
0.00 45.00#include<stdio.h>
#include<math.h>
main()
{
int q;
double a,b,c,d,m,n,s,w,x;
scanf("%d",&q);
while(q--)
{
scanf("%lf%lf%lf%lf",&a,&b,&c,&d);
m=sqrt(a*a+b*b);
n=sqrt(c*c+d*d);
w=sqrt((a-c)*(a-c)+(b-d)*(b-d));
x=(m*m+n*n-w*w)/(2*n*m);
printf("%.2lf\n",180/3.141592*acos(x));
}
return 0;
}
标签:
原文地址:http://blog.csdn.net/l15738519366/article/details/45676063