Problem D: 【入门】解方程ax+b=0

Problem D: 【入门】解方程ax+b=0

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1331  Solved: 1037
[Submit] [Status] [Web Board] [Creator:]

Description

求解方程ax+b=0。要求:输入a与b(a、b均为实数,其中a≠0),计算并输出方程的解x

Sample Input Copy

5  1

Sample Output Copy

-0.200000