2012年10月7日

查找某一范围内的重复数字

摘要: #include<iostream.h>#include<string.h>void main(){ unsigned char b[1000000/8+1]; memset(b,0,1000000/8+1); int x=1000000-2; b[x/8]|=(1<<(x%8)); int y=b[x/8]; cout<<y<<endl;} 阅读全文

posted @ 2012-10-07 22:57 为梦飞翔 阅读(224) 评论(0) 推荐(0)

导航