F - Make Bipartite(dp)
代码
#include <bits/stdc++.h>
#define int long long
#define rint register int
using namespace std;
inline int read()
{
rint x = 0, flag = 1, c = getchar();
while ((c < '0' || c > '9') && c ^ '-') c = getchar();
c == '-' ? flag = -1 : x = (c ^ 48), c = getchar();
while (c >= '0' && c <= '9') x = (x << 1) + (x << 3) +