Phương Trình Bậc Nhất

PDF

Submit solution

Points: 10.00
Time limit: 1.0s
Memory limit: 16M
Input: stdin
Output: stdout

Authors:
Problem types
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT

Cho phương trình bậc nhất: ~ax+b=0~.

Yêu cầu

Tìm nghiệm của phương trình trên với ~a~, ~b~ được nhập vào từ bàn phím.

Dữ liệu

Một dòng duy nhất, gồm hai số thực ~a~, ~b~ ~(a,b\leq10^4,a\ne 0)~.

Kết quả

Dòng duy nhất là nghiệm của phương trình, làm tròn 3 chữ số phần thập.

Lưu ý: Dữ liệu đầu vào luôn đảm bảo tồn tại kết quả đầu ra.

Input

5 -3

Output

0.600

Comments

Please read the guidelines before commenting.


There are no comments at the moment.