//加 importjava.math.BigInteger;importjava.io.*;publicclassMain{publicstaticvoidmain(String[] args)throwsIOException{BufferedReader reader =newBufferedReader(newInputStreamReader(System.in));BigInteger a =newBigInteger(reader.readLine());BigInteger b =newBigInteger(reader.readLine());System.out.println(a.add(b));
reader.close();}}//减importjava.io.*;importjava.math.BigInteger;publicclassMain{publicstaticvoidmain(String[] args)throwsIOException{BufferedReader reader =newBufferedReader(newInputStreamReader(System.in));BigInteger a =newBigInteger(reader.readLine());BigInteger b =newBigInteger(reader.readLine());System.out.println(a.subtract(b));
reader.close();}}//乘importjava.io.*;importjava.math.BigInteger;publicclassMain{publicstaticvoidmain(String[] args)throwsIOException{BufferedReader reader =newBufferedReader(newInputStreamReader(System.in));BigInteger a =newBigInteger(reader.readLine());BigInteger b =newBigInteger(reader.readLine());System.out.println(a.multiply(b));
reader.close();}}//除importjava.io.*;importjava.math.BigInteger;publicclassMain{publicstaticvoidmain(String[] args)throwsIOException{BufferedReader reader =newBufferedReader(newInputStreamReader(System.in));BigInteger a =newBigInteger(reader.readLine());BigInteger b =newBigInteger(reader.readLine());//divide 返回值为 a/bBigInteger[] c = a.divideAndRemainder(b);//返回值为数组,分别为a/b和a%bSystem.out.println(c[0]);System.out.println(c[1]);
reader.close();}}
java+//加 import java.math.BigInteger;import java.io.*;public class Main { public static void main(String[] args) throws IOException{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); BigInteger a = ne