标签:
5 1 13 22 62 155
1.05 176.98 506.84 4025.43 25158.92
代码:
01.
#include<iostream>
02.
#define PI 3.1415926
03.
using
namespace
std;
04.
#include<stdio.h>
05.
#include<math.h>
06.
int
main()
07.
{
08.
int
t;
09.
double
m,s;
10.
cin>>t;
11.
while
(t--)
12.
{
13.
cin>>m;
14.
s = PI*(
sqrt
(3)*m/3)*(
sqrt
(3)*m/3);
15.
printf
(
"%.2lf\n"
,s);
16.
}
17.
return
0;
18.
}
标签:
原文地址:http://blog.csdn.net/u012701023/article/details/46043215