回文串——判断一个字符串是否为回文串 摘要:解题思路:利用列表步长为-1时,反向输出注意事项:参考代码:L = list(input())if L == L[::-1]: print('Y')else: print(…… 题解列表 2023年03月18日 0 点赞 0 评论 645 浏览 评分:0.0
回文串-题解 摘要: 参考代码:#include"bits/stdc++.h" using namespace std; char str[280]; bool check(char *s,int a,int b)…… 题解列表 2021年04月14日 0 点赞 0 评论 622 浏览 评分:0.0
题解 1200: 回文串 摘要: #include using namespace std; char s[100000]; int main(){ cin>>s; int…… 题解列表 2023年12月15日 0 点赞 0 评论 481 浏览 评分:0.0
1200: 回文串C++ 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=10200;char s[N];int main(){ ci…… 题解列表 2023年12月15日 0 点赞 0 评论 527 浏览 评分:0.0
回文串(Java) 摘要:解题思路:注意事项:参考代码:package arrLast; //题目 1200: 回文串 import java.util.Scanner; public class t_1200 { …… 题解列表 2024年02月01日 0 点赞 0 评论 474 浏览 评分:0.0
简易回文串C解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[300],b[300]; int i,j=0,is…… 题解列表 2024年02月20日 0 点赞 0 评论 462 浏览 评分:0.0
回文串(回文串特点解法) 摘要:解题思路:知道回文串首尾相同的特点就很好解决。注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char srr[…… 题解列表 2024年11月13日 0 点赞 0 评论 502 浏览 评分:0.0
1200: 回文串(详细简单暴力解) #include#includeintmain(){chara[256];fgets(a,sizeof(a),stdin);//去除fgets读取字符串时可能包含的换行符'\n'a[strcspn(a,"\n")]='\0';inti,len=strlen(a);intflag=1;//用于标记是否为 题解列表 2024年11月13日 0 点赞 0 评论 645 浏览 评分:0.0
数组回文串 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string.h>int main() { char arr [255]; …… 题解列表 2024年12月06日 0 点赞 0 评论 738 浏览 评分:0.0
莉露编写题解 1200: 回文串 解题思路:for循环最左最右先比,逐渐往中间看注意事项:注意嵌套顺序参考代码:#include#include#defineMAX256intmain(){chara[MAX];scanf("%s",a);intj=strlen(a)-1;for(inti=0;i 题解列表 2026年02月13日 0 点赞 0 评论 458 浏览 评分:0.0