6行:万花丛中过,片叶不沾身 摘要:解题思路:注意事项:参考代码:word=input()result=""for i in range(len(word)-1): result += chr(ord(word[i])+ord(w…… 题解列表 2024年07月25日 0 点赞 0 评论 621 浏览 评分: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 评论 711 浏览 评分:0.0
为什么不初始化就通不过 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i; char a[101] = {'\…… 题解列表 2023年09月21日 0 点赞 0 评论 242 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:注意添加终止符参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101],str_friend[101]; …… 题解列表 2023年06月01日 0 点赞 0 评论 236 浏览 评分:0.0
输出亲朋字符串——python 摘要:解题思路:注意事项:参考代码:L = input()for i in range(len(L)-1): a =chr( ord(L[i])+ord(L[i+1])) print(a,end…… 题解列表 2023年04月02日 0 点赞 0 评论 274 浏览 评分:0.0
单个字符拼接输出 摘要:解题思路:注意事项:不要用cin<< 因为根据题目条件,字符串中可能含有空格参考代码://#include <bits/stdc++.h>#define _CRT_SECURE_NO_WARNINGS…… 题解列表 2023年03月10日 0 点赞 0 评论 205 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() { char …… 题解列表 2023年03月05日 0 点赞 0 评论 215 浏览 评分:0.0
输出亲朋字符串(简短) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100]; gets(s); int …… 题解列表 2023年02月07日 0 点赞 0 评论 296 浏览 评分:0.0
好理解的答案 摘要:解题思路: 无所畏惧,直接上,系统会自动转化成ascii码相加的,我们不用管这么多注意事项:亲朋字符串的最后一个字符由给定字符串s的最后一个字符ASCII值加s的第一个字符的ASCII值参考代码:#i…… 题解列表 2024年11月26日 0 点赞 0 评论 572 浏览 评分:0.0
小白序列知识解法 摘要:参考代码:str1=input()#用户输入一个字符串n=len(str1)#获取字符串长度str2=&nb…… 题解列表 2025年05月08日 1 点赞 0 评论 252 浏览 评分:0.0