摘要:
#include <bits/stdc++.h> using namespace std; typedef long long ll; void _1(){ int t; cin>>t; while(t--){ int n;cin>>n; string s;cin>>s; int flag=1; f 阅读全文
摘要:
#include <bits/stdc++.h> typedef long long ll; using namespace std; const int maxn=1e6+10; int f[maxn],col[maxn]; int find(int x){ return f[x]==x?x:f[ 阅读全文