问题描述:
http://acm.wust.edu.cn/problem.php?id=1002&soj=0
代码实现:
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a, b, n; n = scan.nextInt(); while(n-- != 0){ a = scan.nextInt(); b = scan.nextInt(); System.out.println(a + b); } } }
时间: 2024-09-27 20:42:57