JAVA 高精度加法

import java.math.BigInteger;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sca = new Scanner(System.in);
            BigInteger a,b;
            a = sca.nextBigInteger();
            b = sca.nextBigInteger();
            BigInteger c = a.add(b);
            System.out.println(c);

    }
}

还是JAVA方便!!!!!!!!!!!!!!!!!!

猜你喜欢

转载自blog.csdn.net/m0_37862025/article/details/79857417