蓝桥杯历届试题-回文数字(C语言) 摘要:解题思路:两个函数:1.求各位数之和;2.判断是否为回文数字。注意事项:可用sprintf()把数字转化为字符串方便操作。参考代码:// [蓝桥杯][历届试题]回文数字#include <stdio.…… 题解列表 2021年04月14日 0 点赞 0 评论 365 浏览 评分:9.9
蓝桥杯历届试题-回文数字(Python) 摘要:解题思路:将每一个数字变为字符串,通过字符串判断是否满足回文串要求。把满足题意的回文串添加到一个列表里,最后打印。不满足直接输出-1参考代码:n=eval(input()) ls=[] for i…… 题解列表 2021年11月16日 0 点赞 0 评论 508 浏览 评分:9.9
蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int n; bool f(int x){ int a[6],i=0,nu…… 题解列表 2021年11月18日 0 点赞 0 评论 398 浏览 评分:9.9
1434: 蓝桥杯历届试题-回文数字 摘要: n = int(input().strip()) c =0 def huiwen(s): for i in range(len(s)//2): …… 题解列表 2021年12月01日 0 点赞 0 评论 446 浏览 评分:9.9
简单逻辑,拒绝复杂 摘要:解题思路:注意事项:参考代码:import datetimen=int(input())count=0for j in range(10000,1000000): sum = 0 j=st…… 题解列表 2022年01月11日 0 点赞 0 评论 393 浏览 评分:9.9
蓝桥杯历届试题-回文数字 摘要:import java.util.Scanner; public class Demo1434 { public static void main(String[] args) { Sca…… 题解列表 2022年01月12日 0 点赞 0 评论 313 浏览 评分:9.9
蓝桥杯历届试题-回文数字(C语言版)超级简单循环搞定 摘要:## 简单做法见代码 ```c #include int main() { int n; int count = 0; scanf("%d", &n); …… 题解列表 2022年02月06日 0 点赞 0 评论 233 浏览 评分:9.9
暴力求解,加标志位 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int n;int f=1; int sum=0,num=0; scanf("%d",&n…… 题解列表 2022年02月23日 0 点赞 0 评论 188 浏览 评分:9.9
hhhhhhhhhhhhhhhh谢谢你 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ bool flag = 0; int n; cin >> n; int…… 题解列表 2022年02月28日 0 点赞 0 评论 224 浏览 评分:9.9
蓝桥杯历届试题-回文数字(JAVA)参考前面大佬的 摘要:解题思路:注意事项:无参考代码:import java.util.*; public class Main { public static void main(String[] arg…… 题解列表 2022年03月02日 0 点赞 0 评论 271 浏览 评分:9.9