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\n",(L*L)/(2*PI));
    }
    return 0;
}

 

posted @ 2015-11-11 09:03  Fighting_Heart  阅读(236)  评论(0编辑  收藏  举报