|
4
|
| ilitirit · 技术社区 · 17 年前 |
|
|
1
7
Wikipedia 有关详细信息,还有以下示例代码:
|
|
|
2
6
为什么要指数化?你就不能乘模吗 n 在循环中? (defun multiplicative-order (a n)
(if (> (gcd a n) 1)
0
(do ((order 1 (+ order 1))
(mod-exp (mod a n) (mod (* mod-exp a) n)))
((= mod-exp 1) order))))
或者,在ptheudo(sic)代码中:
|
|
|
feasega · 聚合物模拟-2个节点之间的最短路线,适用于所有节点 1 年前 |
|
|
Alisa Petrova · 在有向图中更改一对顶点以创建循环 1 年前 |
|
|
b39b332d · 使用C++标准库实现高效间隔存储 1 年前 |
|
ABGR · 二叉树的直径——当最长路径不通过根时的失败案例 1 年前 |
|
|
EpicAshman · 数独棋盘程序中同一列和同一行出现两次的数字 1 年前 |