UVA 11646 - Athletics Track
2014-04-27 23:03
375 查看
圆的内角等于外角的两倍
代码如下:
代码如下:
#include<iostream> #include<iomanip> #include<cmath> using namespace std; const double pi=acos(-1); int main(){ // freopen("data.txt","r",stdin); ios::sync_with_stdio(false); double a,b; char aa; int kase=1; while(cin>>a>>aa>>b){ double alpha=atan(a/b); double tmp=(sqrt(a*a+b*b))/a; double x=200/(pi*tmp/2-alpha*tmp+1); double y=b*x/a; cout<<"Case "<<kase++<<": "<<setiosflags(ios::fixed)<<setprecision(5)<<x<<' '<<y<<endl; } return 0; }
相关文章推荐
- UVA 11646 Athletics Track (简单数学题)
- uva 11646 - Athletics Track
- 入门题 UVA 11646 Athletics Track
- UVA 11646 Athletics Track
- UVa 11646 - Athletics Track
- UVA 11646 || Athletics Track(圆心角乘半径 = 弧长
- uva 11646 - Athletics Track
- UVA 11646 Athletics Track
- uva 11646 - Athletics Track
- UVA - 11646 - Athletics Track (计算几何~)
- UVa11646 - Athletics Track(水题)
- uva 11646 - Athletics Track(几何)
- UVa 11646 - Athletics Track
- UVA 11646 - Athletics Track || UVA 11817 - Tunnelling the Earth 几何
- UVA 11646 Athletics Track
- UVA 11646 - Athletics Track || UVA 11817 - Tunnelling the Earth 几何
- UVA 11646 - Athletics Track(计算几何)
- UVa 11646 - Athletics Track(几何)
- 简单几何(推公式) UVA 11646 Athletics Track
- Athletics Track - UVa 11646 几何