#19Easy
Linear equation
Time: 1 s · Memory: 256 MB
- Variables and types
Statement
You are given the equation with . Find the unknown .
Input format
A single line with two integers and ().
Output format
A single number — with exactly 2 digits after the decimal point.
Examples
Input
2 -4
Output
2.00
Input
3 1
Output
-0.33
Note
From the equation, . Remember that C++ and Go drop the fractional part when dividing two integers: 3 / 2 is 1. Convert one of them to floating point: -b / (double)a.
