当前位置:网站首页>L1-067 Roche limit (10 points)
L1-067 Roche limit (10 points)
2022-06-12 04:27:00 【Liabilities between persons^】
L1-067 Roche limit (10 branch )
Science fiction film 《 Wandering the earth 》 One of the most important scenarios in is when the earth is too close to Jupiter , The atmosphere began to be sucked away by Jupiter , And as we get closer to the ground wood “ Rigid body Roche limit ”, The earth is in danger of being completely torn apart . But actually , This calculation is wrong .
Roche limit (Roche limit) It is the distance when the gravity of one celestial body is equal to the tidal force caused by the second celestial body . When the distance between two celestial bodies is less than the Roche limit , Objects tend to disintegrate , And then it becomes the ring of the second object . It was Edward, the first person to calculate this limit · Roche named .( From baidu baike )
The ratio of the density of large objects to that of small objects 3 After power , Multiplied by the radius of the big object and a multiple ( The multiple corresponding to the fluid is 2.455, The multiple of a rigid body is 1.26), Is the value of the Roche limit . For example, the density ratio of Jupiter to earth is open 3 The power is 0.622, If we assume that the earth is a fluid , So the Roche limit is 0.622×2.455=1.52701 Times the radius of Jupiter ; But the earth is a rigid body , The corresponding Roche limit is 0.622×1.26=0.78372 Times the radius of Jupiter , This distance is smaller than the radius of Jupiter , That is, the earth will be torn apart only when it is inside Jupiter , In other words , Is that the earth can't be torn apart .
This question asks you to judge whether a small celestial body will be torn apart by a large celestial body .
Input format :
Enter... On one line 3 A digital , In turn : The ratio of the density of large objects to that of small objects 3 The value calculated after the power (≤1)、 Properties of small celestial bodies (0 Represents a fluid 、1 Represents a rigid body )、 The ratio of the distance between two celestial bodies to the radius of large celestial bodies (>1 But not more than 10).
Output format :
In one line, first output the ratio of the Roche limit of small objects to the radius of large objects ( Output after decimal point 2 position ); Then empty one space ; The final output ^_^ If the little celestial body won't be torn apart , Otherwise output T_T.
sample input 1:
0.622 0 1.4
sample output 1:
1.53 T_T
sample input 2:
0.622 1 1.4
sample output 2:
0.78 ^_^
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<vector>
#include<stack>
#include<queue>
#include<sstream>
using namespace std;
typedef long long ll;
const int N=10010;
int main()
{
double a, b, c;
cin >> a >> b >> c;
if(b == 0) a *= 2.455;
else a *= 1.26;
if(a < c) printf("%.2lf ^_^\n",a);
else printf("%.2lf T_T\n",a);
return 0;
}
边栏推荐
- R language plot visualization: plot visualization grouped violin plot in R with plot
- Function realization and application of trait
- Please calculate the value of the following function recursively: PX (x, n) =x-x^2 +x^3- x^4+... (-1) n-1) (xn) n > 0 * * input format requirements: "%lf%d" prompt: "enter X and n:"
- 图解 Apache SkyWalking UI 的使用
- R语言plotly可视化:plotly可视化基础二维直方图、自定义设置二维直方图的颜色、二维直方图是二元分布的直方图可视化(Basic 2D Histogram)
- Notes on relevant knowledge points such as original code / inverse code / complement code, size end, etc
- Question for the 3D printing lattice?
- Labor
- [C language] encapsulation interface (addition, subtraction, multiplication and division)
- leetcode797. All possible paths (medium)
猜你喜欢

【FPGA混沌】基于FPGA的混沌系统verilog实现

D1 Nezha development board power on record

Esp32c3 remote serial port

Function realization and application of trait
![Work report of epidemic data analysis platform [1] data collection](/img/3d/b58c2d3f7fd6051e35d1cea535f858.png)
Work report of epidemic data analysis platform [1] data collection

Smart Panel wifi Linkage Technology, esp32 wireless chip module, Internet of Things WiFi Communication Application

leetcode797. 所有可能的路径(中等)

How to use union all in LINQ- How to use union all in LINQ?

E-commerce middle office system architecture

【C语言】封装接口(加减乘除)
随机推荐
[issue 31] 360 background development practice experience - two rounds of technical aspects
怎样拥有心灵的平和?获得一颗全新的心灵
windows如何安装多个版本mysql,如何同时启动
调用提醒事项
【C语言】封装接口(加减乘除)
WPF 数据绑定(四)
分布式锁介绍
【FPGA+GPS接收器】基于FPGA的双频GPS接收器详细设计介绍
19. Optimized database query of tornado project
Zabbix6.0新功能Geomap 地图标记 你会用吗?
Work report of epidemic data analysis platform [6.5] epidemic map
[software tool] [original] tutorial on using VOC dataset class alias batch modification tool
千字巨著《编程后传》
Construction case of Expressway Precast Beam Yard (with scheme text)
R语言plotly可视化:可视化回归模型实际值和回归预测值的散点图分析回归模型的预测效能、区分训练集和测试集、一个好的模型大部分的散点在对角线附近、添加边缘直方图以快速诊断模型可能存在的任何预测偏差
JSP实现银柜台业务绩效考核系统
WiFi module scheme of the wireless Internet of things, esp32-s3 chip technology, helps the equipment to be intelligent
Exception handling and unit testing
疫情数据分析平台工作报告【8.5】额外的爬虫和绘图
Unable to resolve dependency tree