6行:万花丛中过,片叶不沾身 摘要:解题思路:注意事项:参考代码:word=input()result=""for i in range(len(word)-1): result += chr(ord(word[i])+ord(w…… 题解列表 2024年07月25日 0 点赞 0 评论 647 浏览 评分:0.0
好理解的答案 摘要:解题思路: 无所畏惧,直接上,系统会自动转化成ascii码相加的,我们不用管这么多注意事项:亲朋字符串的最后一个字符由给定字符串s的最后一个字符ASCII值加s的第一个字符的ASCII值参考代码:#i…… 题解列表 2024年11月26日 0 点赞 0 评论 592 浏览 评分:0.0
小白序列知识解法 摘要:参考代码:str1=input()#用户输入一个字符串n=len(str1)#获取字符串长度str2=&nb…… 题解列表 2025年05月08日 1 点赞 0 评论 300 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 271 浏览 评分:0.0
2850:将输入的字符串转变成亲朋字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char arr[101]; //scanf("%s…… 题解列表 2025年11月05日 0 点赞 0 评论 43 浏览 评分:0.0
每一个字符和取模后的下一个字符相加输出 摘要:解题思路:遍历每一个字符,和取模后的下一个字符相加输出注意事项:scanf接收不了空格,要用gets参考代码:#include<stdio.h>#include<string.h>int main()…… 题解列表 2024年04月20日 0 点赞 0 评论 556 浏览 评分: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 评论 418 浏览 评分:0.0
初学py,在 Python 中操作 ASCII 摘要:解题思路:注意事项:参考代码:p=input()ans=""iflen(p)==2:print(chr(or…… 题解列表 2025年11月15日 0 点赞 0 评论 53 浏览 评分: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 评论 433 浏览 评分: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 评论 274 浏览 评分:0.0