Phép Tính #3
Submit solution
Points:
10.00
Time limit:
1.0s
Memory limit:
64M
Input:
stdin
Output:
stdout
Authors:
Problem type
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT
Nhập vào bốn số thực ~A~, ~B~, ~C~, ~D~.
Yêu cầu
Tính ~\displaystyle\frac{A+B}{C+D}-\frac{A-C}{B-D}~.
Dữ liệu
Một dòng duy nhất ghi bốn số thực ~A~, ~B~, ~C~, ~D~, cách nhau 1 dấu cách ~(A, B,C, D\leq 10^3,B-D\ne0,C+D\ne0)~.
Kết quả
In ra kết quả phép tính, làm tròn 1 chữ số phần thập phân.
Lưu ý: Dữ liệu đầu vào luôn đảm bảo tồn tại kết quả đầu ra.
Input
1.5 2.0 3.6 4.0
Output
-0.6
Comments