PersonalCorpus 版 (精华区)

1245786 Big Guava ... 10297 Accepted
0:00.000 400 2002/11/18 06:53:35.307

void main()
{
#ifndef ONLINE_JUDGE
    freopen("k:\\uva\\i10297","r",stdin);
    freopen("k:\\uva\\o10297","w",stdout);
#endif

    int D,V;
    double d;

    while (1) {
        scanf("%d%d\n",&D,&V);
        if ((D==0)&&(V==0)) break;
        d=D*D*D-6*V/3.14159265358979323846;
        printf("%.3lf\n",exp(log(d)/3));
    }
}
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.338毫秒