2850: 输出亲朋字符串 摘要:``` #include using namespace std; const int N=10010; int main(){ string a,b; getline(cin,a);…… 题解列表 2023年12月19日 0 点赞 0 评论 145 浏览 评分:0.0
小白序列知识解法 摘要:参考代码:str1=input()#用户输入一个字符串n=len(str1)#获取字符串长度str2=&nb…… 题解列表 2025年05月08日 1 点赞 0 评论 32 浏览 评分:0.0
好理解的答案 摘要:解题思路: 无所畏惧,直接上,系统会自动转化成ascii码相加的,我们不用管这么多注意事项:亲朋字符串的最后一个字符由给定字符串s的最后一个字符ASCII值加s的第一个字符的ASCII值参考代码:#i…… 题解列表 2024年11月26日 0 点赞 0 评论 292 浏览 评分: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
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: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 141 浏览 评分:0.0
每一个字符和取模后的下一个字符相加输出 摘要:解题思路:遍历每一个字符,和取模后的下一个字符相加输出注意事项:scanf接收不了空格,要用gets参考代码:#include<stdio.h>#include<string.h>int main()…… 题解列表 2024年04月20日 0 点赞 0 评论 381 浏览 评分:0.0
八行简便 编写题解 2850: 输出亲朋字符串 摘要:解题思路:字符串与码的结合注意事项:下标大小参考代码:a=list(input())n=len(a)c=[]for i in range(n): b=chr(ord(a[i-1])+ord(a[…… 题解列表 2024年04月06日 0 点赞 0 评论 314 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:参考代码:s = input() s1 = '' for i in range(len(s) - 1): s1 += chr(ord(s[i]) + ord(s[i + …… 题解列表 2024年03月23日 0 点赞 0 评论 279 浏览 评分:0.0
一般方法,一般思路,小白解法 摘要:解题思路:注意事项:参考代码:n=input()l=''for i in range(len(n)-1): l+=chr(ord(n[i])+ord(n[i+1]))l+=chr…… 题解列表 2024年03月15日 0 点赞 0 评论 185 浏览 评分:0.0