上一页 1 2 3 4 5 6 7 8 ··· 18 下一页
摘要: 1#include2#include3#include4#include5usingnamespacestd;6constintN=5e4+10,M=(1g[M];9vectorid[N];10intlast[M];11intans[N];12//maxn<=10^4,a[i]<=2^1013str... 阅读全文
posted @ 2015-02-27 18:29 acvc 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1#include2intmain()3{4intn;5while(scanf("%d",&n)!=EOF)6{7intans=0;8for(inti=1;i*i/2<=n;i++)9{10if(i%2)11{12if(n%i==0)ans++;13}14else15{16if(n%i==(i/2)... 阅读全文
posted @ 2015-02-27 18:28 acvc 阅读(242) 评论(3) 推荐(0) 编辑
摘要: 1//worfzyq2#include3#include4#include5#include6#include7#include8#include9usingnamespacestd;10typedeflonglongLL;11constintMAX=1e5+10;12constintMOD=1e9... 阅读全文
posted @ 2015-02-27 18:27 acvc 阅读(274) 评论(2) 推荐(0) 编辑
摘要: 1#include2#include3#include4usingnamespacestd;5constintmd=1e9+7;6structmatr7{8intm[3][3];9}a;10intn;1112matrmul(matra,matrb)13{14matrc;15for(inti=0;i>... 阅读全文
posted @ 2015-02-27 18:26 acvc 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1#include2#include3#include4#include5usingnamespacestd;6constintN=1010;7vectorg[N];8intf[N];9intn,m;10intmark[N];1112intFind(intx)13{14return(x==f[x])... 阅读全文
posted @ 2015-02-27 18:26 acvc 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1#include2#include3#include45constdoublepi=acos(-1);6structpoint{7doublex,y;8}L,R,O;9doubler;1011doubledis(conststructpoint&a,conststructpoint&b){12re... 阅读全文
posted @ 2015-02-27 18:25 acvc 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1#include2usingnamespacestd;3constintmaxn=101;4constintmaxnSum=10005;5booldp[maxn][maxnSum];6intA[maxn];789intmain()10{11intn,sum;12while(scanf("%d",&... 阅读全文
posted @ 2015-02-27 18:24 acvc 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1#include2#include3#include4usingnamespacestd;5chars[3][3];67booljudge1()8{9for(inti=0;i<3;i++){10boolflag=1;11for(intj=0;j<3;j++){12if(s[i][j]!='0')... 阅读全文
posted @ 2015-02-27 18:23 acvc 阅读(274) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusingnamespacestd;constintMAX=100000+10;intres[MAX>1;build(L,mid,o=R){returnres[o];}intmid=(L+R)>>1;inttt=0;if(lsmid)t... 阅读全文
posted @ 2015-02-08 09:35 acvc 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 参考:http://m.blog.csdn.net/blog/Xiangamp/42245923# 阅读全文
posted @ 2015-01-26 11:32 acvc 阅读(333) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 18 下一页