|
@@ -1,4 +1,4 @@
|
|
|
-// ensemble d'entiers entre 1 et MAXN-1
|
|
|
+// ensemble d'entiers entre 0 et MAXN-1
|
|
|
typedef long long T;
|
|
|
const int MAXN = 5000;
|
|
|
const int BITS = (sizeof(T)*8);
|
|
@@ -27,7 +27,7 @@ void insert(T a[], int x) {
|
|
|
}
|
|
|
void print(T a[]) {
|
|
|
for(int i = 0; i < SIZE; i++)
|
|
|
- for(int j = 0; j < BITS-1; j++)
|
|
|
+ for(int j = 0; j < BITS; j++)
|
|
|
if(a[i] & (((T)1)<<j))
|
|
|
printf("%d ", i*BITS+j);
|
|
|
printf("\n");
|