牛客226545250号
牛客226545250号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客226545250号的博客
全部文章
(共45篇)
题解 | 计算字符串的编辑距离
#include <iostream> #include <vector> using namespace std; int main(){ // 编辑距离,字符串-->动态规划 // 需要构建dp数组 string word1,word2; ...
2025-08-21
0
16
题解 | 截取字符串
#include <iostream> using namespace std; int main(){ string s; int k; cin>>s>>k; cout<<s.substr(0,k)<<...
2025-08-21
0
14
题解 | 字符串加密
#include <iostream> #include <vector> #include <map> using namespace std; int main() { string s, t; cin >> s >>...
2025-08-21
0
18
题解 | 字符串合并处理
#include <iostream> #include <algorithm> using namespace std; int main(){ // 字典法 char Input[] = {"0123456789abcdefABCDEF&quo...
2025-08-21
0
15
题解 | 字符串加解密
#include <iostream> using namespace std; int main() { // 加密和解密 string plaintext; // 输入明文字符串 string ciphertext; // 输入密文字符串 cin ...
2025-08-21
0
15
题解 | 字符串排序
#include <cctype> #include <iostream> #include <vector> #include <set> using namespace std; struct CustomCompare { // 重载o...
2025-08-21
0
21
题解 | 删除字符串中出现次数最少的字符
#include <iostream> #include <algorithm> #include <map> using namespace std; int main(){ string str; cin>>str; m...
2025-08-20
0
19
题解 | 字符串排序
#include <iostream> #include <set> using namespace std; int main(){ // 给定一个正整数n int n; cin>>n; // 用一个字符串数组进行排序 ...
2025-08-20
0
15
题解 | 字符串反转
#include <iostream> #include <algorithm> using namespace std; int main(){ // 字符串反转,可原地逆置 string s; cin>>s; if(s.len...
2025-08-20
0
18
题解 | 质数因子
#include <iostream> #include <cmath> #include <vector> using namespace std; int main(){ // 输入一个整数n int n; cin>>n;...
2025-08-20
0
16
首页
上一页
1
2
3
4
5
下一页
末页