oiwiki 的这个页面 有如下内容:
static void modPow() {
a = new BigInteger("2");
b = new BigInteger("10");
p = new BigInteger("1000");
out.println(String.format("a:%s b:%s p:%s", a, b, p));
out.println(String.format("a^b mod p:%s", a.modPow(b, p).toString()));
}
快速幂和蒙特卡洛有什么关系???有人讲讲吗 百度无果