首页 > 小红的树形 dp
头像 chenRenning
发表于 2024-02-28 21:52:35
: ) 树形dp写法 #pragma GCC optimize(3) #pragma GCC optimize("Ofast,no-stack-protector") #include <bits/stdc++.h> using namespace std ; const int N 展开全文
头像 佩奇是野猪
发表于 2024-02-26 08:50:38
E题真的是树形DP #include<bits/stdc++.h> using namespace std; const int N=1e5+10; int n; vector<int> e[N]; char s[N]; bool dfs(int u,int fa) { 展开全文

等你来战

查看全部