水题
说好的二分的呢
AC代码如下:
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
double a, b;
int main(){
int T, Case = 1;
cin >> T;
while( T-- ){
scanf( "%lf : %lf", &a, &b );
double tt = atan( b / a );
double R = 200.0 / ( 2 * tt + 2 * cos( tt ) );
printf( "Case %d: %.7lf %.7lf\n", Case++, 2 * R * cos( tt ), 2 * R * sin( tt ) );
}
return 0;
}