Schwertlilien
As a recoder: notes and ideas.

2026-4-11—RL

PPO

image-20260411173905484

image-20260424104537064

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int (vector<string> strs,){
unordered_map<int,vector<string>> mp;//
//字符长度,对应长度的字符
int min_num=INT_MAX;
int ans=0;
while(strs.size()>1){
//每一轮计算当前的最小-下标
int min_num=INT_MAX;
int index=0;
for(int i=1;i<strs.size();i++){
//找到最小的值
if(min_num<s)
}
//找到下标后在数组中删去min对应(i-1,i)
strs[index-1]=strs[index-1]+strs[index];
ans+=strs[index-1].size();
delete strs[index];
}
return ans;
}

[‘abc’,’d’] :dp[0]=3,dp[1]=dp[0]+s[1]=4

[‘abc’,’d’,’ef’] : dp[2]=dp[0]+(s[0]+s[1])?=3+3. Strs[i-1] str[i]

ans+=dp[s[0]]+dp[s[1]]

dp[i+1]=min(dp[i-1]+【前一步累积长度】+(strs[i].size()+strs[i+1].size()),dp[i]+【前面所有的累积长度】);

[“aaab”,”b”,”c”,”d”]

[4,5,min(2+6,5+6),]

[4,5,8,min(5+2+7,8+7)]

搜索
匹配结果数:
未搜索到匹配的文章。