超长正整数相加, BigInteger, 华为

import java.util.*;
import java.math.BigInteger;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()) {
            BigInteger a = sc.nextBigInteger();
            BigInteger b = sc.nextBigInteger();
            BigInteger c = a.add(b);
            System.out.println(c);
        }
    }
}
posted @ 2020-07-06 11:31  li修远  阅读(137)  评论(0编辑  收藏  举报