优质题解 reverse方法(简单易懂) 摘要:解题思路:常规思路:可以先用数组存入数据,通过两个for循环输出结果(一个正向输出,一个逆向输出)本文思路:先用字符串存入数据,先输出该字符串,如何用StringBuilder(可变字符串)复制一下字…… 题解列表 2023年09月18日 0 点赞 0 评论 824 浏览 评分:9.9
简单思路解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fun(char a[],char b[]){ int i,len; // ge…… 题解列表 2023年08月15日 0 点赞 0 评论 174 浏览 评分:0.0
C语言训练-字符串正反连接 摘要:#include<stdio.h> int main() { char a[100]; char b[100]; scanf("%s",a); printf("%s",…… 题解列表 2023年06月11日 0 点赞 0 评论 154 浏览 评分:0.0
还是那句话,人生苦短,我用python 摘要:解题思路:注意事项:参考代码:a=input()print(a+a[::-1])…… 题解列表 2023年05月20日 0 点赞 0 评论 457 浏览 评分:9.9
递归逆序进行连接 摘要:f函数代表输出当前长度为n的字符串的最后一个字母,递归终止的条件是字符串长度为0为止,return结束函数 ```c #include #include void f(char *…… 题解列表 2023年03月30日 0 点赞 0 评论 229 浏览 评分:0.0
编写题解 1126: C语言训练-字符串正反连接 正序打印和逆序打印 摘要:解题思路:注意事项:参考代码:#include <string.h> #include <stdio.h> int main(void) { char a[100]={0}; int …… 题解列表 2023年01月09日 0 点赞 0 评论 225 浏览 评分:0.0
字符串正反连接(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char *fun(char str[]){ char* str1 = str; char* str…… 题解列表 2023年01月05日 0 点赞 0 评论 173 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:解题思路:解1;先反转字符串,再合并正反字符串,后输出(更严谨)。解2;先正着输出字符串,再反着输出字符串(简单暴力);注意事项:参考代码:代码1;#include<stdio.h>#include<…… 题解列表 2022年12月30日 0 点赞 0 评论 290 浏览 评分:0.0
暴力解法(凑字数。。。。。。。 摘要:解题思路:注意事项:参考代码:n=list(input())m=n.copy()n.reverse()c=m+nfor i in c: print(i,end='')…… 题解列表 2022年12月28日 0 点赞 0 评论 191 浏览 评分:0.0
本座!元始天尊!!1126: C语言训练-字符串正反连接 摘要:```cpp #include using namespace std; int main() { string s1,s2; cin>>s1; s2=s1; reverse(…… 题解列表 2022年12月15日 0 点赞 0 评论 403 浏览 评分:9.9