正文
增加 3 行删除 3 行
46 行未改动4748495051525354559 行未改动65666768697071727346 行未改动int t; cin >> t;while(t--){cin >> n >> m;vector<vector<ll > >dp(n+5,vector<ll>(m+5,0));for(int i = 0;i <= m;i++) dp[0][i]=1;//没有左/右儿子视为1for(int i = 1;i <= n;i++){cin >> a[i];}top = 0;9 行未改动s[++top]=i;}dfs(s[1],dp);cout << dp[s[1]][m] <<endl;}return 0;}```46 行未改动4748495051525354559 行未改动65666768697071727346 行未改动int t; cin >> t;while(t--){cin >> n >> m;vector<vector<ll > >dp(n+5,vector<ll>(m+5,0));for(int i = 0;i <= m;i++) dp[0][i]=1;//没有左/右儿子视为1for(int i = 1;i <= n;i++){cin >> a[i];}top = 0;9 行未改动s[++top]=i;}dfs(s[1],dp);cout << dp[s[1]][m] <<endl;}return 0;}```