题解 2850: 输出亲朋字符串

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

编写题解 2850: 输出亲朋字符串

摘要:解题思路:设计两个移动指针count1,count2注意事项:参考代码:str=input() ls=[] #初始化空列表 count1=0 #设计两个相邻指针并初始化 count2=1 wh……

2850: 输出亲朋字符串

摘要:参考代码:#include <bits/stdc++.h> using namespace std; char str2[300]; int tong[150]; int main() {……

ASCII值赋值之输出亲朋字符串

摘要:```c #include #include int main() { char a[101], b[101]; //因为字符串长度最大为100,101是因为字符串最后一位是\0 ge……

逐一处理字符即可

摘要:参考代码:#include<iostream> using namespace std;   int main() {       string s;     getline(cin, s……

输出亲朋字符串

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; getline(cin,s); for(……

亲朋字符串题解java

摘要:解题思路:s1和s长度相同,不考虑最后一个字符,s1[i]=(char)s[i]的ASCII码+s[i+1]的ASCII码,考虑最后一个字符:s1[i]=(char)s[i]的ASCII码+s[0]的……

小白序列知识解法

摘要:参考代码:str1=input()#用户输入一个字符串n=len(str1)#获取字符串长度str2=&nb……