摘要:
void solve(){ int n,m;//n个节点,m条边 vector<vector<int>>gh(n+1); for(int i=0;i<m;i++){ int u,v;cin>>u>>v; gh[u].pb(v); gh[v].pb(u); } vector<int>color(n+1 阅读全文
posted @ 2025-06-09 17:27
Qacter
阅读(4)
评论(0)
推荐(0)
摘要:
void solve(){ int n,m,l;cin>>n>>m>>l; vector<vector<int>>gh(n+1); for(int i=0;i<l;i++){ int u,v;cin>>u>>v; gh[u].pb(v); } vector<int>vis(m+1);//标记右侧是否 阅读全文
posted @ 2025-06-09 16:54
Qacter
阅读(9)
评论(0)
推荐(0)
摘要:
#define lc p<<1 #define rc p<<1|1 const int N =100005; int n,m;vector<int>nums; struct node{ int l,r,sum,add; }tr[4*N]; void pushup(int p){ tr[p].sum= 阅读全文
posted @ 2025-06-09 15:43
Qacter
阅读(13)
评论(0)
推荐(0)
摘要:
int tire[(int)3e6+10][63]; int cnt[(int)3e6+10]; int get(char c){ if(c>='a'&&c<='z') return c-'a'; else if(c>='A'&&c<='Z') return 26+(c-'A'); return 5 阅读全文
posted @ 2025-06-09 15:40
Qacter
阅读(7)
评论(0)
推荐(0)

浙公网安备 33010602011771号