「BZOJ2178」圆的面积并

2014年3月17日9,4086

Description

给出N个圆,求其面积并

Input

先给一个数字N ,N< = 1000 接下来是N行是圆的圆心,半径,其绝对值均为小于1000的整数

Output

面积并,保留三位小数

Sample Input

721

Sample Output

12707279.690

题解

辛普森积分法

 

avatar
3 Comment threads
3 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
4 Comment authors
oldherd吴桐hzwerNewnode Recent comment authors
  Subscribe  
提醒
oldherd
oldherd

好像,bzoj现在的第13组数据能在精度上卡掉这个做法(3293545.548和3293545.547

吴桐

不随机旋转坐标轴会不会被卡啊

翁家翌

2
-2 -2 2
1 2 2
ans=8π=25.133
your_ans=24.694

Newnode
Newnode

这是Simpson必跪的点啊

翁家翌

不会啊我写的辛普森没有这个问题= =