Bullet Speed
Time limit0.5sMemory limit256 MB
Given Cheolsu's running speed A and the bullet's speed B relative to him, print the bullet's speed toward the target, which is A + B.
- Level
Easy2 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Cheolsu is running toward a target at meters per second, carrying a gun. While running, he fires a bullet toward the target; the bullet leaves the gun at meters per second relative to him.
How many meters per second is the bullet traveling toward the target?
Input
The first line gives two real numbers and , separated by a space and written to two decimal places. ()
Output
Print how many meters per second the bullet is traveling toward the target.
A result is judged correct if its absolute or relative error from the answer is at most .