http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2693
水题,但是是special judge的第一题
#include<cstdio>
#include<cmath>
using namespace std;
int main()
{
int a, b, count_ = 1;
char c[10];
while(scanf("%d%s%d", &a, &c, &b) == 3)
{
double R = sqrt(b*b+a*a)/2;
double theta = 2*asin(b/(2*R));
double p = theta*R + a;
printf("Case %d: %.8f %.8f\n", count_++, 200*a/p, 200*b/p);
}
return 0;
}