## COCI '07 Contest 5 #1 Tri

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

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.

#### Input Specification

The first line of input contains three integers less than , separated by spaces.

Note: The input data will guarantee that a solution, although not necessarily unique, will always exist.

#### Output Specification

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.

#### Sample Input 1

5 3 8

#### Sample Output 1

5+3=8

#### Sample Input 2

5 15 3

#### Sample Output 2

5=15/3

• commented on Dec. 26, 2017, 11:52 p.m.

"output any of them" meaning any one or all?

• commented on Dec. 26, 2017, 11:57 p.m.

any one

• commented on Dec. 27, 2017, 12:09 a.m.

thanks had to submit a few times to figure out lol

• commented on Dec. 24, 2017, 8:18 p.m.

WzRd Never mind kek

• commented on Dec. 24, 2017, 5:55 p.m.

There is no judge for this problem :(

• commented on Sept. 25, 2017, 2:19 p.m. edited

hgj