摘要:
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; } ... 阅读全文
摘要:
#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... 阅读全文