摘要:
题意: 给一张无向图,没说连通性,要你选出一个大小为n的匹配,或者大小为n的独立集。换句话说,要你选出n条互相没有公共点的边,要是没有就选出n个互相没有直接相邻的点。直接相邻:被一条给定边连接。 思路: #include<bits/stdc++.h> using namespace std; con 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; const int maxn=4e4+4; const int maxbit=15; struct edge{ int to; int val; // edge(int a,int b) // { // to= 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; const int MAXN = 100005 ; const int N = 26 ; struct Palindromic_Tree { int next[MAXN][N] ; int fail[MAXN] 阅读全文