java就有这么慢么?
这种水题~这~~~
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);
BigInteger x,y,re;
String ans;
int n;
while (cin.hasNext())
{
n=cin.nextInt();
if (n==0)break;
x=cin.nextBigInteger(n);
y=cin.nextBigInteger(n);
re=x.mod(y);
ans=re.toString(n);
System.out.println(ans);
}
}
}