theOldChun

ZJZSZX

2018年11月8日 #

[板子]对拍

摘要: ``` #include #include #include #include #include #include #include #define ll long long using namespace std; int main(){ int cas=0; while(1){ printf("Case:/t%d:\n",cas); system("make.exe"); do... 阅读全文

posted @ 2018-11-08 10:25 theOldChun 阅读(120) 评论(0) 推荐(0)

[板子]线性筛

摘要: ``` include include include include include include define ll long long define maxn 10000005 using namespace std; int v[maxn],prime[maxn]; int n,tot; 阅读全文

posted @ 2018-11-08 08:25 theOldChun 阅读(77) 评论(0) 推荐(0)

[板子]质因数分解

摘要: ``` include include include include include include define ll long long define maxn 1005 using namespace std; int p[maxn],c[maxn],tot; void devide(int 阅读全文

posted @ 2018-11-08 08:19 theOldChun 阅读(233) 评论(0) 推荐(0)

[板子]扩欧

摘要: ``` #include #include #include #include #include #include #define ll long long using namespace std; int exgcd(ll a,ll b,ll &x, ll &y){ if(!b){ x=1,y=0;return a; } ll d=exgcd(b,a%b,x,y); ll z=x;x... 阅读全文

posted @ 2018-11-08 08:10 theOldChun 阅读(109) 评论(0) 推荐(0)

[板子]高精(无符号)

摘要: ``` #include #include #include #include #include #include #define ll long long using namespace std; struct Bignum{ #define Dignum 1000+5 int num[Dignum]; #undef Dignum }; Bignum b_trans(char *p){... 阅读全文

posted @ 2018-11-08 07:51 theOldChun 阅读(134) 评论(0) 推荐(0)

[板子]矩阵加速

摘要: ``` #include #include #include #include #include #include #define ll long long using namespace std; const int mod=1000000007 int n; void mul(int f[2],int a[2][2]){ int c[2]; memset(c,0,sizeof(c)); ... 阅读全文

posted @ 2018-11-08 07:49 theOldChun 阅读(119) 评论(0) 推荐(0)

导航