题解 | #a+b#
a+b
https://www.nowcoder.com/practice/4c39c984ea3848b48e111b8e71ec1dd4
import java.util.Scanner;
import java.math.BigInteger;
// javaBigInteger永远的神
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
// 注意 hasNext 和 hasNextLine 的区别
BigInteger a;
BigInteger b;
while(in.hasNextBigInteger())
{
BigInteger sum=new BigInteger("0");
a=in.nextBigInteger();
b=in.nextBigInteger();
sum=a.add(b);
System.out.println(sum);
}
}
}
小米集团公司氛围 372人发布
查看9道真题和解析