#PCBBAY0000044. Vận tốc trung bình một chặng (Average Speed over a Trip)
Vận tốc trung bình một chặng (Average Speed over a Trip)
Average Speed over a Trip
Version: Phuoc Hung OJ Extended
Problem Statement
A trip covers distance in time . Its average speed is . Compute and print exactly 3 decimal places. The result has the input distance unit divided by the input time unit.
Input
The only line contains real distance and time , in that order.
Output
Print the average speed with exactly 3 decimal places.
Subtasks
- Subtask 1 (100 points): ; .
Examples
Example 1
Input
100 2
Output
50.000
Explanation. Substituting 100, 2 into d / t gives approximately 50. The required output formatting produces 50.000.
Example 2
Input
12.5 0.5
Output
25.000
Explanation. Substituting 12.5, 0.5 into d / t gives approximately 25. The required output formatting produces 25.000.
Example 3
Input
1 3
Output
0.333
Explanation. Substituting 1, 3 into d / t gives approximately 0.333333333333. The required output formatting produces 0.333.