请计算:7 ^ 2020 mod 1921,其中 A mod B 表示 A 除以 B 的余数
在这里使用了java中bigint的类。其中bigint拥有读入,进制转换,比较大小,类型转换等方法,
在此处使用基本运算即可
import java.math.BigInteger;
public class day1 {
public static void main(String[] args) {
BigInteger sum;
BigInteger x= new BigInteger("7");
BigInteger z= new BigInteger("1921");//pow方法对bigint参数不适用
sum=x.pow(2020);
sum=sum.mod(z);
System.out.print(sum);
}
}