07 2021 档案
摘要:题目链接 题意: 输入木马种类 给他们上色 要求 相邻的不同种类的木马不能涂同一种颜色 (环 1与n也是相邻的) 输出最少要几种颜色 并涂色方式 最多三种就能满足题意。 #include <bits/stdc++.h> using namespace std; const int N=2e5+10;
阅读全文
摘要:题目链接 #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #include <utility> #include <map> #include <vector> #include <queue
阅读全文

浙公网安备 33010602011771号