Fill in the Blanks

5

1 votes
Easy
Problem

Lester is quite weak in the Mathematics and tomorrow he has the submission of the Math’s assignment. Since he is weak with addition problems, he is annoyed with solving the problems like:
1 2 3 _ 4 5 6 (A)
+
8 7 6 3 5 2 1 (B)
--------------------------
9 9 9 5 9 7 7
(C) Fill in the blank space :
Help the Lester to solve his assignment containing ‘t’ problems. NOTE: Blank space(Underscore) may be in A or B or C. There exists only one blank space. NOTE: It is guaranteed that the sum will be correct
Constraints:

    1<=t<=10
    0<=A,B,C<=10100
    Input Format:
    First Line would contain ‘t’ Next 3 lines would contain A,B,C each on new Line respectively(without spaces)
    Output Format:
    For each problem output the answer to be filled in the blank space

Sample Input
1
123_456
8763521
9995977
Sample Output
2
Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

Self Explainatory

Editor Image

?