theOldChun

ZJZSZX

2018年11月9日 #

[板子]快读

摘要: ``` int rd(){ int x=0,p=1; char ch=getchar(); while(ch '9' || ch='0' && ch 阅读全文

posted @ 2018-11-09 21:36 theOldChun 阅读(103) 评论(0) 推荐(0)

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)

2018年8月21日 #

[solution]JZOJ-5838 旅游路线

摘要: [solution] JZOJ 5838 旅游路线 Time Limits 1000ms,Memory Limits 128MB 题面 Description GZOI队员们到X镇游玩。X镇是一个很特别的城镇,它有m+1条东西方向和n+1条南北方向的道路,划分成m n个区域,这些区域标从北到南、从西 阅读全文

posted @ 2018-08-21 19:36 theOldChun 阅读(156) 评论(0) 推荐(0)

2018年8月17日 #

[Solution] JZOJ-5818 做运动

摘要: [Solution] JZOJ 5818 做运动 Time Limits:2000ms Memory Limits:524288KB Description 一天,Y 君在测量体重的时候惊讶的发现,由于常年坐在电脑前认真学习,她的体重有了突 飞猛进的增长。 幸好 Y 君现在退役了,她有大量的时间来做 阅读全文

posted @ 2018-08-17 09:54 theOldChun 阅读(182) 评论(0) 推荐(0)

2018年8月15日 #

[小结] 中山纪念中学2018暑期训练小结(划掉)(颓废记)-Day10

摘要: [小结] 中山纪念中学2018暑期训练小结(划掉)(颓废记) Day10 各位看众朋友们,你们好,今天是2018年08月14日,星期二,农历七月初四,欢迎阅看今天的颓废联编节目 最近发生的灵异事件有 1.本人模拟赛直接打出T2目测全场唯一AC代码结果细节被O2直接卡掉 2.第16号台风在附近海区逗留 阅读全文

posted @ 2018-08-15 22:02 theOldChun 阅读(168) 评论(0) 推荐(0)

导航