gravatar

T1000-2 3

20191113041 at 2019-11-20T04:34:24+00:00 Go TO Problem T1000

<!--Markdown--> import java.util.*; public class Main{ public static void main(String args[]){ Scanner cin = new Scanner(System.in); int a, b; while (cin.hasNext()){ a = cin.nextInt(); b = cin.nextInt(); System.out.println(a + b); } } }

Comments:

gravatar 多次拒绝刘耀文
2021-01-11T15:52:03+00:00
<!--Markdown--> import java.util.*; public class main{ public static void main(String[] args){ try( // Todo Scanner sc=new Scanner(System.in)){ int a=sc.nextInt(); int b=sc.nextInt(); System.out.println(a + b); } } } //简直绝了,编译器运行正常,在这儿怎么也过不了——