我居然自己写对了,太棒了 摘要:解题思路:注意事项:参考代码:n=input()if int(n[::-1])==int(n): print('YES')else: print('NO')…… 题解列表 2022年06月01日 0 点赞 3 评论 519 浏览 评分:9.9
1999 递归判断首尾相等,诗体文言带你解读。 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;long long N;char s[100];bool HW(int L,int R){ if(L>=R) re…… 题解列表 2022年07月25日 0 点赞 0 评论 288 浏览 评分:9.9
1999-回文判断(简洁) 摘要:```cpp #include #include using namespace std; int main() { long long n; //long long数据最大值占19…… 题解列表 2022年10月15日 0 点赞 0 评论 166 浏览 评分:0.0
回文判断(字符串比较)+ 踩坑经过 摘要:解题思路: 回文数:是从左到右读和从右到左读都一样的数字。 思路:既然题目要求使用字符串来解决,无非就是字符串的比较问题。先使用一个for循…… 题解列表 2022年11月07日 0 点赞 1 评论 146 浏览 评分:0.0
元始真解!编写题解 1999: 回文判断 摘要:#####解题思路:设反向扫描双指针为i和j,如果s[i]和s[j]相同,则执行i++和j—;如果s[i]和s[j]不同,那么或者删除s[i],或者删除s[j],看剩下的字符串是否是回文串。 ```…… 题解列表 2022年12月22日 0 点赞 0 评论 484 浏览 评分:9.9
判断回文数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,t=""; cin>>s; …… 题解列表 2023年05月11日 0 点赞 0 评论 152 浏览 评分:0.0
回文判断(叛逆,又不是回文子串,不用字符数组) 摘要:参考代码: 没用数组的,但检测的数据用的好像比较大,要用long int ```c #include int main() { long int a; scanf("%ld",&a)…… 题解列表 2023年10月31日 0 点赞 0 评论 161 浏览 评分:0.0
回文判断(c语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char arr[20], i; …… 题解列表 2023年11月11日 0 点赞 0 评论 182 浏览 评分:0.0
回文数的判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char arr[10000],str[100000];…… 题解列表 2024年04月28日 0 点赞 0 评论 339 浏览 评分:0.0
1999: 回文判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll fanzhuan(ll x){ …… 题解列表 2024年07月10日 0 点赞 0 评论 105 浏览 评分:0.0