码迷,mamicode.com
首页 > 其他好文 > 详细

hdu2002

时间:2017-09-01 22:18:22      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:span   efi   tac   stack   ack   scanf   pre   print   iostream   

  http://acm.hdu.edu.cn/showproblem.php?pid=2002

#include<iostream>
#include<stdio.h>
#include<math.h>
#include<queue>
#include<stack>
#include<algorithm>
#define PI 3.1415927
using namespace std;

int main()
{
    double  r;
    while(~scanf("%lf",&r))
    {
        printf("%.3lf\n",4.0*PI*r*r*r/3);
    }
    return 0;
}

 

hdu2002

标签:span   efi   tac   stack   ack   scanf   pre   print   iostream   

原文地址:http://www.cnblogs.com/hhkobeww/p/7465124.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!