摘要:
上届:最大的饼的面积下届:0二分。。。注意的是while条件与整数的二分查找有区别(r-l)>0.00001取PI的技巧:const double PI=acos(-1.0);View Code #include<stdio.h>#include<math.h>const double PI=acos(-1.0);double a[10009];int n,m;double ss(double r){ return r*r*PI;}int much(double s)//当面积为S时可以把这些饼分成几个有效饼{ int i; int add=0; for(i=0; 阅读全文
posted @ 2011-08-29 21:51 huhuuu 阅读(430) 评论(0) 推荐(0)
浙公网安备 33010602011771号