lightoj 1022

直接算即可,特别要注意精度
#include<cstdio>
#include<cmath>
int main(){
    int t, CASE(0);
    double r;
    scanf("%d", &t);
    while(t--){
        scanf("%lf", &r);
        printf("Case %d: %.2lf\n", ++CASE, 1e-9 + 4*r*r-M_PI*r*r);
    }
    return 0;
}

posted on 2014-08-09 10:32  ~Love()  阅读(166)  评论(0编辑  收藏  举报

导航