#include <iostream>
#include <cmath>
#include <stdio.h>
#define E 1e-5
const double PI = 3.1415926;
using namespace std;
int main(int argc, const char *argv[])
{
int t;
cin >> t;
while(t--)
{
double x0,y0;
double x,y;
double rx0,ry0;
double a;
cin >> x >> y >> rx0 >> ry0 >> a;
a = 2*PI/360 * (360-a);
x0 = (x - rx0)*cos(a) - (y - ry0)*sin(a) + rx0+E;
y0 = (x - rx0)*sin(a) + (y - ry0)*cos(a) + ry0+E;
printf("%.2lf %.2lf\n",x0,y0);
}
return 0;
}
1375Problem E:几何题(二)
最新推荐文章于 2019-08-02 16:35:48 发布