1200: 回文串C++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=10200;char s[N];int main(){ ci…… 题解列表 2023年12月15日 0 点赞 0 评论 523 浏览 评分:0.0
题解 1200: 回文串 摘要: #include using namespace std; char s[100000]; int main(){ cin>>s; int…… 题解列表 2023年12月15日 0 点赞 0 评论 475 浏览 评分:0.0
c语言一般解法 #include#includeintmain(){chars[1000],s1[1000];gets(s);intlen=strlen(s);for(inti=len-1,j=0;i>=0;i--,j++){s1[j]=s[i];}s1[len]='\0';if(strcmp(s, 题解列表 2023年12月05日 0 点赞 0 评论 518 浏览 评分:9.9
1200: 回文串(C语言) 摘要: #include #include int main() { char str[255]; scanf("%s",str); int length=strlen…… 题解列表 2023年07月28日 0 点赞 0 评论 499 浏览 评分:0.0
回文串(C++)简单易懂 摘要:参考代码:#include <iostream>#include <string>using namespace std;bool isPalindrome(string str) { int …… 题解列表 2023年07月19日 0 点赞 0 评论 649 浏览 评分:9.9
回文串——判断一个字符串是否为回文串 摘要:解题思路:利用列表步长为-1时,反向输出注意事项:参考代码:L = list(input())if L == L[::-1]: print('Y')else: print(…… 题解列表 2023年03月18日 0 点赞 0 评论 640 浏览 评分:0.0
1200: 回文串 摘要:参考代码:#include<stdio.h> #include<string.h> int main(){ int i,j=0; char a[260],b[260]; gets(a);…… 题解列表 2023年01月31日 0 点赞 0 评论 618 浏览 评分:9.9
回文串-字符串处理(C++) 摘要:参考代码:#include<cstdio>#include<cstring>const int maxn = 256; //判断字符串str是否是“回文串”bool judge(char str[…… 题解列表 2023年01月23日 0 点赞 0 评论 524 浏览 评分:0.0
C语言简单代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[256]; int i,j; gets(a); j=strle…… 题解列表 2023年01月02日 0 点赞 0 评论 613 浏览 评分:9.9
1200: 回文串 ```cpp#include#includeusingnamespacestd;intmain(){charch[255];boolfalg=true;gets(ch);for(inti=0;i 题解列表 2023年01月01日 0 点赞 0 评论 868 浏览 评分:9.9