回文串——判断一个字符串是否为回文串 摘要:解题思路:利用列表步长为-1时,反向输出注意事项:参考代码:L = list(input())if L == L[::-1]: print('Y')else: print(…… 题解列表 2023年03月18日 0 点赞 0 评论 220 浏览 评分:0.0
回文串-题解(C++代码) 摘要:```cpp #include using namespace std; bool is_huiwen(string s){ bool b=true; int s_len=…… 题解列表 2020年03月20日 0 点赞 0 评论 643 浏览 评分:0.0
回文串-题解(C语言代码) 摘要:#include #include int main(){ char str[256]; int len,flag = 1,i; scanf("%s",str); len = …… 题解列表 2020年03月23日 0 点赞 0 评论 629 浏览 评分: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 评论 208 浏览 评分:0.0
回文串思路和参考代码(C语言) 摘要:解题思路:首先注意到字符串长度小于255,所以我们定义一个255个存储单元的数组即可,然后用scanf读入字符串,strlen函数得到字符个数,最后for循环判断。注意事项:参考代码:#include…… 题解列表 2021年10月23日 0 点赞 0 评论 250 浏览 评分:0.0
1200: 回文串 摘要:回文串判断,直接 equal 函数往上拍。#include <bits/stdc++.h> using namespace std; int main(){ string s; …… 题解列表 2022年01月01日 0 点赞 0 评论 182 浏览 评分:0.0
要初始化数组,且长度与下标差一个,gets丢弃换行符,加入结尾符,但统计不包含结尾符 摘要:#include<stdio.h> #include<string.h> #include<malloc.h> int main(){ char ch[255] = {0}; i…… 题解列表 2022年01月23日 0 点赞 0 评论 156 浏览 评分:0.0
回文串不使用reverse解法(Python) 摘要:解题思路:注意事项:参考代码:str=input()n=len(str)m=0for i in range (0,n): if str[i]==str[-1-i]: m=m+1 …… 题解列表 2022年02月14日 0 点赞 0 评论 208 浏览 评分:0.0
回文串(Java代码,尺取法判断) 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2022年04月20日 0 点赞 0 评论 224 浏览 评分:0.0
回文串-字符串处理(C++) 摘要:参考代码:#include<cstdio>#include<cstring>const int maxn = 256; //判断字符串str是否是“回文串”bool judge(char str[…… 题解列表 2023年01月23日 0 点赞 0 评论 161 浏览 评分:0.0