L1-067 洛希极限 (10 分) 题意巨绕T_T。 resres是洛希极限和大天体半径的比值,distdivrdistdivr是两天体距离和大天体半径的比值。 分母上都有大天体半径,比较相对大小即可。 doublerho; booltype; intdistdivr; intmain() { cin>>rho>>type>>distdivr; doubleres; if(type) res=rho*1.26; elseres=...
L1-067 洛希极限 (10 分) 题意巨绕T_T。 \(res\)是洛希极限和大天体半径的比值,\(distdivr\)是两天体距离和大天体半径的比值。 分母上都有大天体半径,比较相对大小即可。 double rho; bool type; int distdivr; int main() { cin>>rho>>type>>distdivr; double res; if(type) res=rho*1.26; ...