C-Hello I am HERE!

最近在学习Java,在比赛的时候遇到了,跃跃一试。。。。

//package cn.itcast.chapter01;
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		int k=n;
		for(int j=0;j<n;j++)
		{
			BigInteger ans=new BigInteger("0");
			for(int i=1;i<=2;i++)
			{
				ans=ans.add(s.nextBigInteger());
			}
			System.out.println(ans);
		}
	}
}

猜你喜欢

转载自blog.csdn.net/qq_41061455/article/details/80468697