C语言训练-字符串正反连接
摘要:#include<stdio.h>
int main()
{
char a[100];
char b[100];
scanf("%s",a);
printf("%s",……
还是那句话,人生苦短,我用python
摘要:解题思路:注意事项:参考代码:a=input()print(a+a[::-1])……
编写题解 1126: C语言训练-字符串正反连接 正序打印和逆序打印
摘要:解题思路:注意事项:参考代码:#include <string.h>
#include <stdio.h>
int main(void) {
char a[100]={0};
int ……
字符串正反连接(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char *fun(char str[]){ char* str1 = str; char* str……
1126: C语言训练-字符串正反连接
摘要:解题思路:解1;先反转字符串,再合并正反字符串,后输出(更严谨)。解2;先正着输出字符串,再反着输出字符串(简单暴力);注意事项:参考代码:代码1;#include<stdio.h>#include<……
暴力解法(凑字数。。。。。。。
摘要:解题思路:注意事项:参考代码:n=list(input())m=n.copy()n.reverse()c=m+nfor i in c: print(i,end='')……
本座!元始天尊!!1126: C语言训练-字符串正反连接
摘要:```cpp
#include
using namespace std;
int main()
{
string s1,s2;
cin>>s1;
s2=s1;
reverse(……
敲简单C语言代码!!!
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[200]; gets (a);……