HDU 3201 Build a Fence

水题

#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std;

const double PI=3.1415926;

int main()
{
    double L;
    while(~scanf("%lf",&L)){
        if(!L) break;
        printf("%.2lf
",(L*L)/(2*PI));
    }
    return 0;
}
原文地址:https://www.cnblogs.com/zufezzt/p/4955164.html