回文判断(字符串比较)+ 踩坑经过 摘要:解题思路: 回文数:是从左到右读和从右到左读都一样的数字。 思路:既然题目要求使用字符串来解决,无非就是字符串的比较问题。先使用一个for循…… 题解列表 2022年11月07日 0 点赞 1 评论 179 浏览 评分:0.0
判断回文数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,t=""; cin>>s; …… 题解列表 2023年05月11日 0 点赞 0 评论 186 浏览 评分:0.0
回文判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; int n,i,flag=1; gets(a); …… 题解列表 2020年11月28日 0 点赞 0 评论 300 浏览 评分:0.0
回文判断(叛逆,又不是回文子串,不用字符数组) 摘要:参考代码: 没用数组的,但检测的数据用的好像比较大,要用long int ```c #include int main() { long int a; scanf("%ld",&a)…… 题解列表 2023年10月31日 0 点赞 0 评论 187 浏览 评分:0.0
回文判断(c语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char arr[20], i; …… 题解列表 2023年11月11日 0 点赞 0 评论 274 浏览 评分:0.0
回文数的判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char arr[10000],str[100000];…… 题解列表 2024年04月28日 0 点赞 0 评论 386 浏览 评分:0.0
1999: 回文判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll fanzhuan(ll x){ …… 题解列表 2024年07月10日 0 点赞 0 评论 128 浏览 评分:0.0
好用的STL双端队列(1) 摘要:#include<bits/stdc++.h> using namespace std; deque<int>q; int main() { char c[1000]; c…… 题解列表 2024年07月26日 0 点赞 0 评论 99 浏览 评分:0.0
回文判断-题解(C语言代码) 摘要:```c #pragma warning(disable:4996) #include #include #include #include int main() { cha…… 题解列表 2020年02月09日 0 点赞 0 评论 480 浏览 评分:0.0
回文判断 (C++代码) 摘要:解题思路:通过string类读取正整数,然后直接按照回文数的定义进行比较,可以只比较一半的字符串,单位了省事,我直接从头比较到尾注意事项:注意#include<string>,注意结果输出全是大写(Y…… 题解列表 2019年02月02日 0 点赞 0 评论 624 浏览 评分:0.0