ACM1212
调用大数函数去做
import java.math.BigInteger;
import java.util.Scanner;public class Main{public static void main(String[] args) {Scanner sc = new Scanner(System.in);while (sc.hasNext()) {BigInteger a = sc.nextBigInteger();BigInteger b = sc.nextBigInteger();a = a.mod(b);System.out.println(a);}}
}