摘要: /* 暴力做法 : 从2开始枚举,然后暴力判断g^(P-1) = 1 (mod P)是否当且仅当指数为P-1的时候成立 25分0.0 */ #include #include #include #include using namespace std; long long Mi(int a,int m,int p) { if(m==0)return 1; long long x... 阅读全文
posted @ 2016-05-18 20:46 一入OI深似海 阅读(368) 评论(0) 推荐(1) 编辑