Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Equation
Description Your task is to solve an equation of the form For example,
The solution for Input The input file consists of a single line with at most 30 tokens separated by spaces. Each token is either: - a digit from
`0`to`9`; - an operation
`+`,`-`,`*`, or`/`; - an uppercase letter
`X`that denotes variable*x*.
The input file contains a correct representation of Output Write to the output file: `X = p/q`if equation*f*(*x*) = 0 has a single solution that can be represented with a simple fraction*p*⁄*q*, where*p*and*q*are coprime integer numbers and*q*is positive.`NONE`if equation*f*(*x*) = 0 has no solution;`MULTIPLE`if equation*f*(*x*) = 0 has multiple solutions.
Sample Input
Sample Output
Source |

[Submit] [Go Back] [Status] [Discuss]

Any problem, Please Contact Administrator