1002: A+B for Input-Output Practice (II)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了1002: A+B for Input-Output Practice (II)相关的知识,希望对你有一定的参考价值。

问题描述:

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);
        }
    }
}

 

以上是关于1002: A+B for Input-Output Practice (II)的主要内容,如果未能解决你的问题,请参考以下文章

PTA-1002——A+B for Polynomials

PAT1002:A+B for Polynomials

1002. A+B for Polynomials (25)

PAT A1002 A+B for Polynomials

1002 A+B for Polynomials

PAT1002 A+B for Polynomials