题解 1434: 蓝桥杯历届试题-回文数字

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

蓝桥杯历届试题-回文数字(C语言)

摘要:解题思路:两个函数:1.求各位数之和;2.判断是否为回文数字。注意事项:可用sprintf()把数字转化为字符串方便操作。参考代码:// [蓝桥杯][历届试题]回文数字#include <stdio.……

蓝桥杯历届试题-回文数字(Python)

摘要:解题思路:将每一个数字变为字符串,通过字符串判断是否满足回文串要求。把满足题意的回文串添加到一个列表里,最后打印。不满足直接输出-1参考代码:n=eval(input()) ls=[] for i……

蓝桥杯历届试题-回文数字

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int n; bool f(int x){     int a[6],i=0,nu……

简单逻辑,拒绝复杂

摘要:解题思路:注意事项:参考代码:import datetimen=int(input())count=0for j in range(10000,1000000):    sum = 0    j=st……

暴力求解,加标志位

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){    int n;int f=1;    int sum=0,num=0; scanf("%d",&n……

hhhhhhhhhhhhhhhh谢谢你

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ bool flag = 0; int n; cin >> n; int……