当前位置:网站首页>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语言plotly可视化:可视化回归模型实际值和回归预测值的散点图分析回归模型的预测效能、区分训练集和测试集、一个好的模型大部分的散点在对角线附近、添加边缘直方图以快速诊断模型可能存在的任何预测偏差
- WiFi module scheme of the wireless Internet of things, esp32-s3 chip technology, helps the equipment to be intelligent
- Kotlin starts the process, the difference between launch and async, and starts the process in sequence
- Ebpf series learning (4) learn about libbpf, co-re (compile once – run everywhere) | use go to develop ebpf programs (cloud native tool cilium ebpf)
- Webpack--- optimization_ cache
- 图解 Apache SkyWalking UI 的使用
- [automation] generate xlsx report based on openstack automated patrol deployed by kolla
- DS18B20数字温度计 (一) 电气特性, 供电和接线方式
- Call reminder
- Kill session? This cross domain authentication solution is really elegant!
猜你喜欢

MFC General dialog color dialog

Using datetime in MySQL

QT compiling security video monitoring system 43- picture playback

Find missing sequence numbers - SQL query to find missing sequence numbers

1. Mx6ull learning notes (II) - uboot migration

1. Mx6ull learning notes (III) - busybox creates root file system

windows如何安装多个版本mysql,如何同时启动

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

Kill session? This cross domain authentication solution is really elegant!

Based on Visual Studio code Net Maui cross platform mobile application development
随机推荐
Detailed explanation of Command Execution Vulnerability
R language plot visualization: plot visualization of basic 2D histogram, custom setting of color of 2D histogram, and histogram visualization of binary distribution (basic 2D histogram)
Encapsulation manuelle d'un foreach et d'une carte
Epidemic data analysis platform work report [2] interface API
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:"
分布式锁介绍
Street lighting IOT technology scheme, esp32-s3 chip communication application, intelligent WiFi remote control
C# TaskFactory. Startnew method
eBPF系列学习(4)了解libbpf、CO-RE (Compile Once – Run Everywhe) | 使用go开发ebpf程序(云原生利器cilium ebpf )
疫情数据分析平台工作报告【42】CodeNet
R语言使用survival包的coxph函数构建cox回归模型、使用ggrisk包的ggrisk函数可视化Cox回归的风险评分图(风险得分图)、并解读风险评分图、基于LIRI数据集(基因数据集)
Smart panel WiFi linkage technology, esp32 wireless chip module, Internet of things WiFi communication application
Find missing sequence numbers - SQL query to find missing sequence numbers
DS18B20 digital thermometer (I) electrical characteristics, power supply and wiring mode
EN in Spacey_ core_ web_ SM installation problems
JSP实现银柜台业务绩效考核系统
What does hard work mean to you?
Things to challenge
Webpack--- optimization_ cache
spacy中en_core_web_sm安装问题