-->
当前位置:首页 > 题库

PROGRAMMING:A very good ball

Luz5年前 (2021-05-10)题库371
In order to learn physics well, Mori, who just went to senior one, bought a "very elastic" ball. Although it's a very elastic ball, it's just a general elastic ball. After playing the elastic ball for a while, Sen Sen suddenly thought, if he is playing hard on the ground, how far can the ball go? He's not very good at it. Can you help him out? Of course, for those who have just studied physics, we simplify the environment
-Suppose Sensen is a particle, and set up the coordinate axis with Sensen as the origin, then Sensen is located at (0,0) point.
-The mass of the ball is $$W / 100 $$kg (kg), and the acceleration of gravity is 9.8 m / S ^ 2 ($$m / S ^ 2 $).
-The process of Sen Sen's hard bouncing on the ground can be simplified as that the ball is thrown to the first quadrant from (0,0) point at the angle of Sen Sen Sen's choice, and the kinetic energy is assumed to be 1000 joules (J).
-The ball is only affected by gravity in the air. When the ball's ordinate is 0, it can be regarded as landing. When it lands, it loses $$p \% $$kinetic energy and rebounds.
-The ground can be regarded as a rigid body, ignoring the shape of the ball, air resistance and friction resistance.
Sensen's formula for you:
-Kinetic energy formula: $$e = m times V ^ 2 / 2$$
-Newton mechanics formula: $$f = m times a$$
-Gravity: $$g = m times G$$
Among them:
-$$e $$- kinetic energy in joules
-$$M $$- mass, in kilogram
-$$V $$- speed, in M / S
-$$a $$- acceleration in M / s Square
-$$$g $$- acceleration of gravity
###Input format:
The input gives two integers in one line: $$1 / Le w / Le 1000 $$and $$1 / Le P / Le 100 $$, representing the mass of the ball magnified 100 times and the percentage of power lost $$p $$, respectively.
###Output format:
Output the farthest throw distance in one line, keeping 3 decimal places.
###Input example:
```in
100 90
```
###Output example:
```out
two hundred and twenty-six point seven five seven
```






answer:If there is no answer, please comment