COCI 2007/2008, Contest #5
Little Mirko wrote into his math notebook an equation containing three positive integers, the equals sign and one of the four basic arithmetic operations (addition, subtraction, multiplication and division).
During another class, his friend Slavko erased the equals sign and the operations from Mirko's notebook.
Help Mirko by reconstructing the equation from the three integers.
The first line of input contains three integers less than 100, separated by spaces.
Note: The input data will guarantee that a solution, although not necessarily unique, will always exist.
On a single line, output a valid equation containing the three integers (in the same order), an equals sign and one of the four operations. If there are multiple solutions, output any of them.
5 3 8
5 15 3
Point Value: 3
Time Limit: 1.00s
Memory Limit: 32M
Added: Jan 29, 2009
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3