[ACM]HDU Problem 1000 + Java

//no package name 
//import when necessary
import java.util.Scanner;

//it has to be Main class
public class Main {
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		
		//Wrong answer when using while(true)
		while(input.hasNext()){
			int a = input.nextInt(), b = input.nextInt();
			System.out.println(a+b);
		}
	}
}

  

posted @ 2019-06-03 16:53  圣所SANCTUARY  阅读(161)  评论(0编辑  收藏  举报