zoukankan      html  css  js  c++  java
  • HDU 5858 Hard problem

    公式题。

    #pragma comment(linker, "/STACK:1024000000,1024000000")
    #include<cstdio>
    #include<cstring>
    #include<cmath>
    #include<algorithm>
    #include<vector>
    #include<map>
    #include<set>
    #include<queue>
    #include<stack>
    #include<iostream>
    #include<ctime>
    using namespace std;
    typedef long long LL;
    const double pi=acos(-1.0);
    void File()
    {
        freopen("D:\in.txt","r",stdin);
        freopen("D:\out.txt","w",stdout);
    }
    
    int main()
    {
        double L; int T; scanf("%d",&T);
        while(T--)
        {
            scanf("%lf",&L);
            double s1=sqrt(7.0);
            double s2=asin(s1/4);
            double s3=4*asin(5.0*s1/16);
    
            double ans=L*L/4*(pi+s1-s2-s3);
            printf("%.2lf
    ",ans);
        }
        return 0;
    }
  • 相关阅读:
    CodeForces
    codeforces 1250B The Feast and the Bus
    CF1038D Slime
    CodeForces-208C Police Station
    差分约束
    HDU 2586
    HDU 3948
    HDU 2222
    作业
    闰年的判断
  • 原文地址:https://www.cnblogs.com/zufezzt/p/5788705.html
Copyright © 2011-2022 走看看