UVa 11646 - Athletics Track(几何) 发表于 2014-12-07 分类于 AOAPC Training Guide , Chapter 4. Geometry , Basic Problems Disqus: 给出跑道内矩形的长宽比,求长和宽,跑道一圈400米,两边的弧属于同一个圆。简单的几何题,求出长和宽的表达式输出就好。12345678910111213141516#include<cstdio>#include<cmath>const double pi=acos(-1);int main(){ int t=0; double a,b; while(scanf("%lf : %lf",&a,&b)!=EOF){ a/=b,b=1; double r,x,h; r=sqrt(a*a+1); h=r*atan(b/a); x=200/(a+h); printf("Case %d: %.10lf %.10lf\n",++t,a*x,b*x); } return 0;}** 本文迁移自我的CSDN博客,格式可能有所偏差。 **相关文章Training:计算几何基础UVa 10347 - MediansUVa 10439 - Temple of DuneUVa 10522 - Height to AreaUVa 10566 - Crossed Ladders