ECNU 1000 A + B Problem

ECNU 1000 A + B Problem

链接

https://acm.ecnu.edu.cn/problem/1000

题目

单点时限: 1.0 sec

内存限制: 256 MB

输入格式
Two integer a,b(<=10) . Process to end of file.

输出格式
For each case, output in one line.

样例
input
1 1
2 3
output
2
5

思路

真的有这么阳间的数据?
直接a+b就行了,我还以为要大数运算。

代码

  public static void fun() {
    Scanner sc = new Scanner(System.in);
    while(sc.hasNextInt())
    {
      int a = sc.nextInt();
      int b = sc.nextInt();
      System.out.println(a+b);
    }

  }
posted @ 2021-01-18 10:20  cheng102e  阅读(79)  评论(0编辑  收藏  举报