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

#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;
}
原文地址:https://www.cnblogs.com/GoAhead/p/2714591.html