摘要:
#include <bits/extc++.h> #include <cstdio> #define inf 998244353 using namespace __gnu_pbds; using pai = std::pair<int, int> ; tree <pai, null_type, s 阅读全文
摘要:
前几天做 arc 时连做两道高维前缀和,今天去看 dp 题单时发现这东西居然叫 sos dp,来刷一下板子。 粘一篇 找到的 blog,感觉引入那里非常自然! link to CF | link to Luogu 给定一个长度为 $n$ 的序列,求选出一个子序列,这些数按位与为 $0$ 的方案数。 阅读全文