摘要: 思路: 已知:A%9973 = n; gcd(B,9973)=1; 求(A/B)%9973; k = (A/B)%9973 - > A/B - 9973*y = k; -> A = k*B+9973*y; 带入 A%9973 = n中得 k*B%9973 = n; kB - 9973*y = n; 阅读全文
posted @ 2020-03-10 01:24 sqsq 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 参考博客: https://blog.csdn.net/u012469987/article/details/39041797 https://blog.csdn.net/qq_22902423/article/details/50569835 代码: #include<iostream> #inc 阅读全文
posted @ 2020-03-10 00:41 sqsq 阅读(110) 评论(0) 推荐(0) 编辑