蓝桥杯历届试题-回文数字 (Java代码) 摘要:解题思路: 暴力搜索注意事项: 注意输出-1的情况的处理参考代码:import java.util.Scanner; public class Main { public sta…… 题解列表 2021年02月20日 0 点赞 0 评论 381 浏览 评分:0.0
蓝桥杯历届试题-回文数字-题解(Java代码) 摘要:解题思路:挺好的 借鉴一下 思路吧 说白了 就是将所有的数字逆序来比较他是否相等 还有 一件事 就是56位数 值得是10000-1000000之间的数不管是输入 还是自己查询 要注意 数字长度 …… 题解列表 2021年02月20日 0 点赞 0 评论 160 浏览 评分:0.0
蓝桥杯历届试题-回文数字-题解(C语言代码) 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2021年02月22日 0 点赞 0 评论 242 浏览 评分:0.0
python解决回文数字 摘要:解题思路:思路清晰简单参考代码:# 求数字各位数之和 def DigitCount(n): result = 0 s = str(n) lenth = len(s) …… 题解列表 2021年03月20日 0 点赞 0 评论 210 浏览 评分:0.0
C语言简单代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ int m,h=0; m=x; while(m>0) { h=h*10+m%10; m=m/10; …… 题解列表 2021年03月23日 0 点赞 0 评论 218 浏览 评分:0.0
纯粹的暴力求解 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int fun(int i) { int n1, n2, n3, n4, n5, n6; if (i / 1…… 题解列表 2021年04月04日 0 点赞 0 评论 170 浏览 评分:0.0
回文数字(c++代码实现,vector) 摘要:解题思路:注意事项:此题比较容易超时, 需要减少遍历次数参考代码:#include using namespace std; vector bool check(int n, int num) …… 题解列表 2021年04月14日 0 点赞 0 评论 248 浏览 评分:0.0
蓝桥杯历届试题-回文数字 python 摘要:解题思路:遍历,数字->字符串->列表,再与反转后判断注意事项:要注意不能直接用=,会修改原始列表数据!参考代码:num = int(input()) cnt = 0 for i in range…… 题解列表 2021年04月24日 0 点赞 0 评论 192 浏览 评分:0.0
回文数字(递归求解,又臭又长,慎点) 摘要:#include<iostream>#include<string>using namespace std;int n;string sub(string s){ string m; for (int…… 题解列表 2021年09月13日 0 点赞 0 评论 231 浏览 评分:0.0
桥杯历届试题-回文数字 摘要:解题思路:暴力循环输出注意事项:参考代码:#include<stdio.h>int main(){ int m; scanf("%d",&m); int i,flag = 0; for(i = 10…… 题解列表 2021年10月17日 0 点赞 0 评论 182 浏览 评分:0.0