摘要: Gregor and Cryptography 题意:给出P (5~1e9) ,找到2$\leq$a$<\(b\)\leq$p,使得p mod a = p mod b 分析:显然固定a为2, p为奇数,b为p-1,p为偶数,b为p,而p \(\geq\) 5,b-1$>$2,故满足题意 代码: #i 阅读全文
posted @ 2021-08-04 21:17 forleaves 阅读(115) 评论(0) 推荐(1)