2013
12-26

# 计算球体积

1
1.5

4.189
14.137

Hint
#define PI 3.1415927


hdu2001一样，套公式即可

 $\frac{4}{3} \pi r^3$ r：球体的半径

#define   PI 3.1415927

result = 4.0 / 3.0  * PI * pow(r, 3);
printf("%.3f\n", result);

1. 这道题这里的解法最坏情况似乎应该是指数的。回溯的时候
O(n) = O(n-1) + O(n-2) + ….
O(n-1) = O(n-2) + O(n-3)+ …
O(n) – O(n-1) = O(n-1)
O(n) = 2O(n-1)

2. Good task for the group. Hold it up for every yeara??s winner. This is a excellent oppotunity for a lot more enhancement. Indeed, obtaining far better and much better is constantly the crucial. Just like my pal suggests on the truth about ab muscles, he just keeps obtaining much better.