#PCBBAY0000062. Động năng (Kinetic Energy)
Động năng (Kinetic Energy)
Kinetic Energy
Version: Phuoc Hung OJ Extended
Problem Statement
An object has mass and velocity . Its kinetic energy is . Compute and print exactly 3 decimal places. Since velocity is squared, a negative velocity still yields nonnegative kinetic energy.
Input
The only line contains real mass and velocity .
Output
Print kinetic energy with exactly 3 decimal places.
Subtasks
- Subtask 1 (100 points): and is a finite real number.
Examples
Example 1
Input
2 3
Output
9.000
Explanation. Substituting 2, 3 into (1/2) × m × v² gives approximately 9. The required output formatting produces 9.000.
Example 2
Input
1.5 10
Output
75.000
Explanation. Substituting 1.5, 10 into (1/2) × m × v² gives approximately 75. The required output formatting produces 75.000.
Example 3
Input
0 100
Output
0.000
Explanation. Substituting 0, 100 into (1/2) × m × v² gives approximately 0. The required output formatting produces 0.000.