java大数值

题目链接

import java.util.*;
import java.math.*;
public class AdivideB {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		BigInteger a = in.nextBigInteger();
		BigInteger b = in.nextBigInteger();
		System.out.println(a.divide(b)+" "+a.mod(b));
		in.close();
	}

}