<> title Problem A: Xiao Ming A+B

Time Limit: 1 Sec Memory Limit: 128 MB

Description

Xiaoming this year 3 I'm old , Now he can get to know each other 100 Nonnegative integer within , And it can be done 100 Addition calculation of nonnegative integers within . For greater than or equal to 100 The integer of ,
Xiao Ming only keeps the last two digits of the number for calculation , If the calculation result is greater than or equal to 100, Then Xiaoming only keeps the last two digits of the calculation result . for example , For Xiao Ming : 1) 1234 and 34 Is equal
2) 35+80=15 Given a nonnegative integer A and B, Your task is to calculate on behalf of Xiao Ming A+B Value of .

Input

The first line of input data is a positive integer T, Represents the number of groups of test data . And then there was T Group test data . Each set of test data contains two nonnegative integers A and B(A and B All in int Type can be expressed in the range ).

Output

For each group of test data , Export Xiaoming A+B The results of .

Sample Input Copy

2
35 80
15 1152

Sample Output Copy

15
67

Java code ：
import java.util.Scanner; public class Main{ public static void main(String[]
args) { Scanner input=new Scanner(System.in); int A,B,number; number=input.
nextInt(); for(int i=1;i<=number;i++) { A=input.nextInt(); B=input.nextInt();
int sum1=A+B; int sum2=sum1%100;// It's right to take the remainder and then add System.out.println(sum2); } } }
Operation results ：
Language: Java Result: Accepted Time:113 ms Memory:10204 kb
END

Technology
Daily Recommendation