一、题目描述
二、算法分析说明与代码编写指导
三、AC 代码
#include<cstdio>
#include<vector>
#include<bitset>
#include<algorithm>
#pragma warning(disable:4996)
using namespace std;
const unsigned nmax = 200;
vector<unsigned> g[nmax]; unsigned n, m, u, v, c[nmax], a, match[nmax]; bitset<nmax> vis; bool ok;
bool paint(const unsigned& u, const unsigned& C) {
c[u] = C; unsigned v;
for (size_t i = 0