http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2693
题目大意:
如图,体育场的跑道一圈400米,其中弯道是两段半径相同的圆弧,已知矩形的长宽比例为a:b,求长和宽的具体数值。

思路:
直接推到一下公式,我是画个对角线,求个角度。。。。挺简单的。
#include<cstdio>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
double a,b;
int kase=1;
char temp[5];
while(~scanf("%lf%s%lf",&a,temp,&b))
{
double g=atan2(b,a);
double r=b/sin(g);
double k=400/(2*a+2*g*r);
printf("Case %d: ",kase++);
printf("%.10lf %.10lf\n",k*a,k*b);
}
return 0;
}UVA 11646 - Athletics Track 几何水题
原文:http://blog.csdn.net/murmured/article/details/19048927