题解 | #高精度整数加法#
高精度整数加法
http://www.nowcoder.com/practice/49e772ab08994a96980f9618892e55b6
import java.util.Scanner; import java.math.BigInteger; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while (in.hasNextLine()) { String a = in.nextLine(); String b = in.nextLine(); BigInteger j = new BigInteger(a); BigInteger k = new BigInteger(b); System.out.println(j.add(k)); } } }