好吧,这个例子能说啥呢。放下好久的acm又重新捡了起来,没想到1000这个题就提交了4次才成功。java和c还是好不一样啊。。。
今天就当个新的开始吧。
-----------------------------------------------------------------------------------------------------------------------------------------
import java.util.Scanner; public class Main { static StringBuilder builder; public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNextInt()){ int a = in.nextInt(); int b = in.nextInt(); System.out.println(a+b); } } }
-----------------------------------------------------------------------------------------------------------------------------------------