编写题解 1621: 蓝桥杯算法训练VIP-字符串编辑(每一行都有注释,一看就懂) 摘要: #include #include // 函数功能:删除字符串中第一个出现的字符a // 参数:str[]:要操作的字符串,a:要删除的目标字符 // …… 题解列表 2025年08月26日 0 点赞 0 评论 76 浏览 评分:0.0
python解答,内容简洁易读 摘要:解题思路:根据题目要求一步一步来。注意事项:python中index(value)只能得到第一个重复元素的位置,需要翻转一下。参考代码:s = list(input().strip())command…… 题解列表 2024年01月24日 0 点赞 0 评论 147 浏览 评分:9.9
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main (){ char c[1000]; gets(c); cha…… 题解列表 2023年10月15日 0 点赞 0 评论 179 浏览 评分:0.0
蓝桥杯算法训练VIP-字符串编辑,易懂 摘要:def D(n,a): if not a in n: return "目标不存在,请重新输入" else: return n.replace(a…… 题解列表 2023年04月02日 0 点赞 0 评论 209 浏览 评分:0.0
优质题解 LikeWater - 1621: 蓝桥杯算法训练VIP-字符串编辑 摘要:####本题同样可以借助String字符串对象解题: ##string字符串对象 **————引入#include库即可定义string对象字符串:例如string str;下面介绍几个重要的对象…… 题解列表 2023年03月10日 0 点赞 2 评论 645 浏览 评分:9.9
python 1621字符串编辑 带解析 摘要:def de(): #删除 for i in range(len(s)): #找到要替换的 直接改为空字符 然后跳出 if E[1]==s[i]: s[i]=…… 题解列表 2023年03月01日 0 点赞 0 评论 176 浏览 评分:0.0
字符串编辑 略微麻烦 摘要:解题思路:分功能解决注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string a; …… 题解列表 2023年02月01日 0 点赞 0 评论 237 浏览 评分:9.9
1621: 蓝桥杯算法训练VIP-字符串编辑 摘要:```cpp #include using namespace std; int main() { string s; int num=0; getline(ci…… 题解列表 2023年02月01日 0 点赞 0 评论 201 浏览 评分:9.9
蓝桥杯算法训练VIP-字符串编辑-题解(Python代码)超简洁 摘要:解题思路:活用replace方法,将元素的增加和删除都转成元素的替换来实现;转换元素的查找,将查找最后一个元素转换成逆序后查找第一个元素;注意事项:这个网站的Python编译器版本过低,不然可以使用r…… 题解列表 2023年01月10日 0 点赞 0 评论 234 浏览 评分:9.9
蓝桥杯算法训练VIP-字符串编辑-python 摘要:解题思路:注意事项:参考代码:def Delete(s,arg): try: index=s.index(arg) string1=s[0:index] …… 题解列表 2023年01月10日 0 点赞 0 评论 158 浏览 评分:0.0