Files
python/TangDou/AcWing/TopSort/TestBitSet.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

15 lines
418 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include <bits/stdc++.h>
using namespace std;
const int N = INT_MAX;
//一维静态数组,不能开到2147483647,此时INT 4byte,需要 4*2147483647/1024/1024/1024≈8GB,开不下,报错
// int a[N];
//每八位占用一个字节,相比于int 占4个字节,可以说是小于32倍,可以正常开启程序并运行
bitset<N> bit;
int main() {
cout << "Hello World~" << endl;
return 0;
}