该文被密码保护。 阅读全文
posted @ 2018-12-16 23:03 JerryVoider 阅读(6) 评论(0) 推荐(0) 编辑
摘要: ```cpp include include using namespace std; const int maxx=100500; int m=150000,ans[maxx],c[maxx],n; struct data { int x,y; }a[maxx]; int bow(int x) { 阅读全文
posted @ 2018-10-03 20:25 JerryVoider 阅读(131) 评论(0) 推荐(0) 编辑
摘要: ```cpp include include include using namespace std; define tcl(a,b,c) for(a=b;a n m k; tcl(i,1,n) { f[i]=i; } tcl(i,1,m) { cin a[i].x a[i].y a[i].dis; 阅读全文
posted @ 2018-09-30 22:14 JerryVoider 阅读(106) 评论(0) 推荐(0) 编辑
摘要: ```cpp include include include using namespace std; define tcl(a,b,c) for(a=b;a N P; tcl(i,1,N) { cin ti[i]; mins=min(ti[i],mins); } tcl(i,1,N) { f[i] 阅读全文
posted @ 2018-09-30 22:13 JerryVoider 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ```cpp include include include using namespace std; const int dx[4]={0,1,0, 1}; const int dy[4]={1,0, 1,0};//四个方向 int x,y; int tot=1,sum[10001]={0},an 阅读全文
posted @ 2018-09-25 22:36 JerryVoider 阅读(184) 评论(0) 推荐(0) 编辑
摘要: ```cpp include include include include using namespace std; const int maxx=1000001;// 最小生成树的这个东西一定不要开小了... int tot=1,x[maxx],y[maxx]; double ans=0;//注 阅读全文
posted @ 2018-09-25 22:33 JerryVoider 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 背下来( 阅读全文
posted @ 2018-09-20 22:25 JerryVoider 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 第一题 蛇形数字三角形 考试的时候因为智障%5d后面还加了个空格然后就爆0了.... 阅读全文
posted @ 2018-07-30 11:37 JerryVoider 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 拿到本题的第一想法就是暴力枚举,这种方法肯定是可做的。具体能那多少分的话...就看数据心情了。 cpp include include using namespace std; int n,a,aa,b,bb,i,j,d,dd; int gcd(int x,int y) { if(x%y==0) r 阅读全文
posted @ 2018-07-26 22:20 JerryVoider 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 01背包 P2871 手链Charm Bracelet cpp include include using namespace std; define tcl(a,b,c) for(a=b;a=c;a ) const int maxx=100001; int w[maxx],v[maxx],f[ma 阅读全文
posted @ 2018-07-22 22:32 JerryVoider 阅读(167) 评论(0) 推荐(0) 编辑