# note **Repository Path**: Irelia7/note ## Basic Information - **Project Name**: note - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-25 - **Last Updated**: 2022-05-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 版权属于leetcode等 输入包括两个正整数a,b(1 <= a, b <= 10^9),输入数据包括多组。 输出a+b的结果 ``` 1 5 10 20 ``` ```java package com.company.ACM; import java.io.*; import java.util.*; public class Solution{ public static void main(String[] args){ Scanner in = new Scanner(System.in); while(in.hasNextLine()){ int a = in.nextInt(); int b = in.nextInt(); int ans = a + b; System.out.println(ans); } } } ``` 2. 第一行组数接空格分割的两个正整数 (行数限制) 题目描述: 输入第一行包括一个数据组数t(1 <= t <= 100) 接下来每行包括两个正整数a,b(1 <= a, b <= 10^9) 输出a+b的结果 输入示例: ``` 2 1 5 10 20 ``` ```java import java.io.*; import java.util.*; public class Solution2{ public static void main(String [] args){ Scanner in = new Scanner(System.in); int n = in.nextInt(); for(int i =0; i