正文
增加 49 行删除 2 行
1234567891011127 行未改动20212223## 思路将其转化成一个求平均值的问题即可,至于证明请看下文## 证明:[看这里](https://www.luogu.com.cn/article/iuoezk64)## 代码```cpp#include<iostream>using namespace std;double n,m,c,sum=0;7 行未改动}printf("%.9lf",sum/n/m);return 0;}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455567 行未改动64656667686970## 思路将其转化成一个求平均值的问题即可,至于证明请看下文。## 证明:证明:每一方格面积相等。不妨设行星半径为 1 ,则每块面积为:$S_块=\textstyle S_带÷M\displaystyle$以下是球带面积推导:首先使球面参数化。得:$\textstyle x=R\sinθ\cosφ,y=R\sinθ\sinφ,z=R\cosθ$其中,$\theta$ 是极角(从 $z$ 轴正方向测量),$ϕ$ 是方位角(从 $x$ 轴测量)。球面上的面积元素为:$\textstyle dA=R^2\sinθdθdφ$假设球带介于 $θ1$ 和 $θ2$ 之间,则球带表面积为:$\textstyle A=\textstyle \int \frac{\mathop{}\!\mathrm{θ} 2}{θ=θ1}\textstyle \int \frac{\mathop{}\!\mathrm{π} }{φ=0}R^2\sinθ dφ dθ$对 $φ$ 积分,得:$\textstyle A=2πR^2\textstyle \int \frac{\mathop{}\!\mathrm{θ} 2}{θ=θ1}\sinθdθ$计算,得:$\textstyle ∫\sin\theta dθ=-cosθ$带入高 H,有:$\textstyle H=R|\cos1θ-\cosθ2|$$\textstyle ∵θ1<θ2∴\cosθ1>\cosθ2$带入,得:$\textstyle A=2πRh$因为等高,所以每一个环面积相等,证毕。## 代码```cpp#include<iostream>using namespace std;double n,m,c,sum=0;7 行未改动}printf("%.9lf",sum/n/m);return 0;}```ps:管理员大大求过。