随笔分类 -  动态规划-树形dp

摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 inline int re_ad() { 4 char ch=getchar(); int x=0,f=1; 5 while(ch<'0' || '9'<ch) { if(ch=='-') f=-1 阅读全文
posted @ 2021-10-04 22:02 上官书房 阅读(36) 评论(0) 推荐(0)
摘要:1 #include<bits/stdc++.h> 2 using namespace std; 3 const int N=5011,mod=1e9+7; 4 int n,m,dp[N][N],g[N][N]; 5 char s[N],t[N]; 6 int main() 7 { 8 scanf( 阅读全文
posted @ 2021-08-10 17:00 上官书房 阅读(41) 评论(0) 推荐(0)