Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Nguồn bài:
Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch
Given:
- ~d~: Distance between city A and city B.
- ~v_1~: Speed of the car from city A to city B.
- ~v_2~: Speed of the car from city B to city A.
Calculate the time it takes for the two cars to meet.
Input:
- Three lines, each containing a positive real number: ~d~, ~v_1~, ~v_2~ ~(d,v_1,v_2 \leq 10^{10})~.
Output:
- Print the meeting time with one decimal place.
Sample Input
300.0
70.0
80.0
Sample Output
2.0
Bình luận