Online Programming Server

Login

Login with facebook [?]

Facebook

Problem 1102: Equations

Problem ID 1102
Title Equations
pdf  
Description
Real is studying primary school and his teacher gave him a boring homework - solving equations. Since this job is so boring, Real decide to write a program to solve them. Can you write one too?
Input
There is only one line, the equation to solve.
The equation will be in the form ax+b=c, where a, b, c are integers ranged from -1000 to 1000 and non-zero. Each integers will contains no leading zeroes and non-numeric characters, the only exception is negative number will start by a single '-'.
 
Output
The value of x with two decimal point.
Sample Input
4x+-2=15
Sample Output
4.25
Hint
 
Last Modified 2012-05-31 15:16:38
Time Limit 1 seconds
Memory Limit 32 MB
Accepted Solutions 1
Submitted Solutions 1
Difficulty Factor 125