2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e7;stri…… 题解列表 2024年07月19日 0 点赞 0 评论 237 浏览 评分:9.9
ASCII值赋值之输出亲朋字符串 摘要:```c #include #include int main() { char a[101], b[101]; //因为字符串长度最大为100,101是因为字符串最后一位是\0 ge…… 题解列表 2023年01月21日 0 点赞 0 评论 551 浏览 评分:9.9
2850: 输出亲朋字符串 摘要:```cpp #include using namespace std; int main() { string s; getline(cin,s); char …… 题解列表 2023年01月10日 0 点赞 0 评论 247 浏览 评分:9.9
编写题解 2850: 输出亲朋字符串 摘要:解题思路:设计两个移动指针count1,count2注意事项:参考代码:str=input() ls=[] #初始化空列表 count1=0 #设计两个相邻指针并初始化 count2=1 wh…… 题解列表 2022年10月28日 0 点赞 1 评论 506 浏览 评分:9.9
逐一处理字符即可 摘要:参考代码:#include<iostream> using namespace std; int main() { string s; getline(cin, s…… 题解列表 2023年12月31日 0 点赞 0 评论 152 浏览 评分:9.0
输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; getline(cin,s); for(…… 题解列表 2024年03月04日 0 点赞 0 评论 147 浏览 评分:2.0
亲朋字符串题解java 摘要:解题思路:s1和s长度相同,不考虑最后一个字符,s1[i]=(char)s[i]的ASCII码+s[i+1]的ASCII码,考虑最后一个字符:s1[i]=(char)s[i]的ASCII码+s[0]的…… 题解列表 2024年03月10日 0 点赞 0 评论 387 浏览 评分:2.0
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 141 浏览 评分:0.0
6行:万花丛中过,片叶不沾身 摘要:解题思路:注意事项:参考代码:word=input()result=""for i in range(len(word)-1): result += chr(ord(word[i])+ord(w…… 题解列表 2024年07月25日 0 点赞 0 评论 479 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:s1 = input()s2 = s1[1::1]s2 = s2 + s1[0]s = ""for i in range(len(s1)): s += chr(or…… 题解列表 2024年08月01日 0 点赞 0 评论 466 浏览 评分:0.0