摘要:
View Code #include<stdio.h>#include<math.h>long long mon(long long n,long long p,long long m){ n=n%m; long long all=1; while(p>0) { if(p&1==1) { all=(all*n)%m; } n=(n*n)%m; p>>=1; } return all;}int main(){ long long n,m; while(sca... 阅读全文
posted @ 2011-10-30 16:32 huhuuu 阅读(333) 评论(0) 推荐(0)
浙公网安备 33010602011771号