常用代码

debug

#define debug(x) cerr << #x << " = " << x << ' '
#define debugl(x) cerr << #x << " = " << x << '\n'

状压dp

int test(int x, int y) { return x >> y & 1; }
void printb(int x) { cout << bitset<4>(x); }
posted @ 2020-11-13 15:59  UCPRER  阅读(74)  评论(0编辑  收藏  举报