import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
BigInteger a,b;
Scanner cin = new Scanner(System.in);
while(cin.hasNext()){
a = cin.nextBigInteger();
b = cin.nextBigInteger();
BigInteger result=a.mod(b);
System.out.println(result);
}
}
}
java实现大数取模
最新推荐文章于 2024-10-10 15:50:45 发布