题意:给空间内两根圆柱,求轴线垂直相交时公共部分的体积。
暴力积分即可。
ID: | Date'n'Time: | Name: | Task: | .Ext: | Status: | Time: | Memory: |
1589374 | 02.09.14 19:37 | HuZhifeng | 217 | .CPP | Accepted | 499 ms | 46 kb |
精度卡爆,0.001s就超时了。。。
运用Simpson's rule:
ID: | Date'n'Time: | Name: | Task: | .Ext: | Status: | Time: | Memory: |
1589386 | 02.09.14 20:03 | HuZhifeng | 217 | .CPP | Accepted | 15 ms | 106 kb |
好优美的东西啊!精度高,速度快!