取反函数
acos()是取反函数的意思
#include<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<math.h>
#define p 3.14159265
using namespace std;
int main(void)
{
double x1,y1,x2,y2,a,b,c,m,n;
cin>>n;
while(n--)
{
cin>>x1>>y1>>x2>>y2;
c=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
b=(x1*x1+y1*y1);
a=(x2*x2+y2*y2);
m=(a+b-c)/(2*sqrt(a)*sqrt(b));
m=acos(m);
printf("%.2lf\n",m*180/p);
}
return 0;
}