import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s=new Scanner(System.in);
String str1=null,str2=null;
System.out.println("输入第一个操作数:");
str1=s.next();
System.out.println("输入第二个操作数:");
str2=s.next();
BigInteger num1=new BigInteger(str1);
BigInteger num2=new BigInteger(str2);
System.out.println("加法:"+num1.add(num2));
System.out.println("减法:"+num1.subtract(num2));
System.out.println("乘法:"+num1.multiply(num2));
BigInteger result[]=num1.divideAndRemainder(num2);//使用result数组保存商和余数
System.out.println("除法商:"+result[0]);
System.out.println("除法余数:"+result[1]);
}
}