【问题描述】
7 月1日是建党日,从1921年到2020 年,中国共产党已经带领中国人民 走过了99年。 请计算:7^2020 mod 1921,其中 A mod B 表示 A 除以 B的余数。
【答案提交】
这是一道结果填空题,你只需要算出结果后提交即可。本题的结果为一个 整数,在提交答案时只填写这个整数,填写多余的内容将无法得分。
代码如下:
import java.math.BigInteger; public class Main{ public static void main(String[] args) { BigInteger x=new BigInteger("7"); BigInteger y=new BigInteger("1921"); BigInteger result=x.pow(2020).remainder(y); System.out.println(result); } }
答案:480