<> title Problem A: Xiao Ming A+B

Time Limit: 1 Sec Memory Limit: 128 MB


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 .


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 ).


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

Sample Input Copy

35 80
15 1152

Sample Output Copy


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

©2019-2020 Toolsou All rights reserved,
c Language implementation 《 Student management system 》 No hole is the future of mobile phone ? There are still many problems to be solved Junior , A little sense , Just for mutual encouragement How to use Vue Used in Echarts Visual Library The 11th Blue Bridge Cup Java The second provincial competition B Group part Python- be based on OpenCV Contour fill for flooding algorithm hole filling 【C#】 The realization of student achievement information management system List Common interview questions in the collection and simple ideas China Mobile Science Popularization : Why do mobile networks call “ Cellular mobile network ”【Golang Basic series 10 】Go language On conditional sentences if