首页 > 其他 > 详细

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

时间:2020-07-06 12:58:40      阅读:42      评论:0      收藏:0      [点我收藏+]
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);
        }
    }
}

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

原文:https://www.cnblogs.com/lixyuan/p/13253944.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!