HDU1000

View Code
import java.util.Scanner;

public class HDU1000 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = 0;
        int b = 0;
        int sum = 0;
        while (sc.hasNext()) {
            a = sc.nextInt();
            b = sc.nextInt();
            sum = a + b;
            System.out.println(sum);
        }
    }
}
posted @ 2012-07-06 10:14  A_阿飞  阅读(113)  评论(0)    收藏  举报