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

- Java331 articles
- Python162 articles
- Linux106 articles
- MySQL72 articles
- SpringBoot63 articles
- Spring55 articles
- Vue50 articles
- javascript44 articles
- more...

Daily Recommendation

views 7

views 3

views 3

views 3

©2019-2020 Toolsou All rights reserved,

c Language to achieve mine clearance Games and mine source code Node.js Middle template engine 3 species Python data structure ,13 Creation methods , This is the conclusion , Great ! The situation of receiving and receiving multi-path git It's set correctly ssh, But it still prompts Permission denied (publickey) new iPhone I won't support it 5G Will lead to further decline in shipment C# Sorting method of Chinese Dictionaries 10909 rice ! Chinese fighter successfully landed in Mariana Trench MySQL8.0MGR Single owner / Multi master installation and switching Java Poor reflection performance ?