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

PDF

Submit solution

Points: 10.00
Time limit: 1.0s
Memory limit: 64M
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~ cho trước.

Dữ liệu

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

Kết quả

Dòng duy nhất là nghiệm của phương trình, làm tròn đến chữ số thập phân thứ ba.
Nếu vô nghiệm, ghi No solution.
Ngược lại, nếu vô số nghiệm ghi Infinity solution.

Input

5 -3

Output

0.600

Comments

Please read the guidelines before commenting.


There are no comments at the moment.