<> 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,
【 Explain in detail 】 Interview must ask :SpringBoot Automatic configuration principle 【 Hyper detail 】Java Realization of student information management system 2020 The 11th National Blue Bridge Cup Python group JavaScript note ( five )---- Branch statement MYSQL database SQL Sentence practice experiment EXERCISES. 1 SIMPLE COMMANDSMySQL Basics Commonly used sentence ( Add / delete / modify query )C++ of string of compare usage vue limit input Only positive numbers can be entered C Language of a Gobang game implementation Programmer refused due to low salary offer,HR become shame , Netizens instantly blew up ..