蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n; int dight[6]; bool judge(int …… 题解列表 2024年03月02日 0 点赞 0 评论 177 浏览 评分:0.0
C++超简单思路 摘要:解题思路:将数字问题转换成字符串问题注意事项:注意看题目要求参考代码:#include<iostream>#include<string>#include<algorithm>#include<std…… 题解列表 2024年01月19日 0 点赞 0 评论 236 浏览 评分:9.9
1434: 蓝桥杯历届试题-回文数字 摘要:这个题容易一上来就将所有的五位和六位数循环一遍.但是这样不能得到满分,最多85. 这个方式称为暴力解法: ```python n = int(input()) for i in range(1…… 题解列表 2024年01月10日 0 点赞 0 评论 188 浏览 评分:0.0
蓝桥杯历届试题-回文数字-纯暴力(Java) 摘要:# 解题思路: 对每一个数的每个位的总值是否与输入的值相同 并且对两个sb对象进行判断,完全相同就是回文数字 ## 注意事项: i的值不能直接参加运算,否则会影响后续的循环 …… 题解列表 2024年01月07日 0 点赞 0 评论 119 浏览 评分:0.0
字符串处理回文数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;int main(){ int n; int sum=0,…… 题解列表 2023年11月25日 0 点赞 0 评论 200 浏览 评分:9.9
c代码记录之回文数字 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int fun5(int m){ int i,j,k,t=0; for(i=1;i<=9;i++) …… 题解列表 2023年11月22日 0 点赞 0 评论 147 浏览 评分:0.0
暴力,朴实无华 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;bool o;int y = 0;bool sf(int x, int w){ i…… 题解列表 2023年11月11日 0 点赞 0 评论 205 浏览 评分:9.9
暴力出奇迹 摘要:参考代码:#include<bits/stdc++.h> using namespace std; bool reversenum(int n) { string s = to_st…… 题解列表 2023年09月02日 0 点赞 0 评论 177 浏览 评分:9.9
题目 1434: 蓝桥杯历届试题-回文数字题解 摘要:1.解题思路先把每个从10000~999999的数都查一遍,输出和为n且是回文数的。确定回文数的方法:有一个数,例如t=i=1331,把末位放到num的末尾,当t小于1时停止。(1331,0)->(1…… 题解列表 2023年07月02日 0 点赞 0 评论 175 浏览 评分:0.0
蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:n=int(input())flag=0for i in range(10000,1000000): a=str(i) l=list(map(int,a)) …… 题解列表 2023年04月06日 0 点赞 0 评论 151 浏览 评分:6.0