摘要: long long ksm(long long a,long long b){ long long c=1; while(b) { if(b&1) c=a*c%Mod; a=a*a%Mod; b>>=1; } ... 阅读全文
posted @ 2016-04-22 18:37 Code-dream 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#includeusing namespace std;int gcd(int a,int b){ return b?gcd(b,a%b):a;} int gcd1( int a, int b){ int r... 阅读全文
posted @ 2016-04-22 08:34 Code-dream 阅读(107) 评论(0) 推荐(0) 编辑