#include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <vector>
#include <math.h>
using namespace std;
int main()
{
int cas = 0;
double a, b;
while( ~scanf( "%lf : %lf", &a, &b ) )
{
double x = 400.0 / ( 2.0 + ( 2.0 * atan( b / a ) * sqrt( a*a + b*b ) ) / a );
double y = x * b / a;
printf( "Case %d: ", ++cas );
printf( "%.10f %.10f\n", x, y );
}
return 0;
}
uva 11646 - Athletics Track
最新推荐文章于 2019-07-03 19:58:04 发布