上机题目(初级)-大数求和
|
代码如下: import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(new BufferedInputStream(System.in));
String add1 = cin.nextLine();
String add2 = cin.nextLine();
java.math.BigInteger res1 = new java.math.BigInteger(add1);
java.math.BigInteger res2 = new java.math.BigInteger(add2);
java.math.BigInteger result = res1.add(res2);
System.out.println(result);
}
}
**喜欢的朋友请关注我,另欢迎阅读我的电子书? (编辑:ASP站长) 【免责声明】本站内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。 |
-
无相关信息


