版本比较
《P2480 [SDOI2010]古代猪文》解题报告
正文
增加 2 行删除 2 行
33 行未改动3435363738383940414249 行未改动9293949596969733 行未改动const int MAXN=1e5+10;LL n,g;int p[10]={0,2,3,4679,35617};int jc[5][40010],ys[MAXN],cnt,a[10];LL mp=1,M[10],t[10],ans; LL mp=1,M[10],t[10],ans;
LL ksm(LL x,LL y,LL MODD) { LL res=1; while(y) {49 行未改动 ans=(ans+M[i]*a[i]%mp*t[i]%mp)%mp; } cout<<ksm(g,ans,999911659); return 0;} }```