状压dp经常使用技巧—Bitset

状压dp一般因为空间限制须要用到二进制。 这里介绍一种二进制处理方法——biset。ios #include<cstdio> #include<iostream> #include<bitset> #include<cstring> using namespace std; bitset<128> num(10),num1(-10); int main(){ cout<<num.to_u
相关文章
相关标签/搜索