C语言写这题不能用scanf 摘要:解题思路:注意事项:测试的数据中有空格,使用scanf不能识别空格。要使用gets或者别的支持空格的。参考代码:```c#include<stdio.h>#include&…… 题解列表 2025年08月02日 1 点赞 0 评论 31 浏览 评分:10.0
小白序列知识解法 摘要:参考代码:str1=input()#用户输入一个字符串n=len(str1)#获取字符串长度str2=&nb…… 题解列表 2025年05月08日 1 点赞 0 评论 190 浏览 评分:0.0
好理解的答案 摘要:解题思路: 无所畏惧,直接上,系统会自动转化成ascii码相加的,我们不用管这么多注意事项:亲朋字符串的最后一个字符由给定字符串s的最后一个字符ASCII值加s的第一个字符的ASCII值参考代码:#i…… 题解列表 2024年11月26日 0 点赞 0 评论 505 浏览 评分: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 评论 651 浏览 评分: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 评论 567 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e7;stri…… 题解列表 2024年07月19日 0 点赞 0 评论 471 浏览 评分:9.9
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 190 浏览 评分:0.0
题解 2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[103];int main(){ cin.getline(s,103…… 题解列表 2024年07月12日 0 点赞 0 评论 513 浏览 评分:9.9
每一个字符和取模后的下一个字符相加输出 摘要:解题思路:遍历每一个字符,和取模后的下一个字符相加输出注意事项:scanf接收不了空格,要用gets参考代码:#include<stdio.h>#include<string.h>int main()…… 题解列表 2024年04月20日 0 点赞 0 评论 487 浏览 评分: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 评论 350 浏览 评分:0.0