Complete the Equation

3.7

3 votes
Very-Easy
Problem

First line contains T test cases.
Each test case consist of equation of the form of “number + number = number” where any two numbers will be known and third number will be unknown. Unknown number will be denoted by ? (Question mark). You need to find the value of third number and print it.
Please refer sample input output for better understanding.

Constraints
Total number of test cases will be less than or equal to 105.
Each number will be non-negative integer less than or equal to 109

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?