Diagnostic Test 2016 Level 1
The members of team starfax learned math in an unconventional way such that they were unable to use calculators. Instead of addition, subtraction, multiplication, and division, with the numbers $
, @
, or #
), calculate the answer to the provided question. Output the string The equation [a] [o] [b] is equal to [answer].
The answer will always be an integer after calculations.
Sample Input 1
Copy
3
$
7
Sample Output 1
Copy
The equation 3 $ 7 is equal to -40.
Sample Input 2
Copy
4
#
0
Sample Output 2
Copy
The equation 4 # 0 is equal to 0.
Comments