编写题解 1201: 回文数(一) 摘要:解题思路:注意事项://输入L//输入M //超出8步则结束//每一步步数加一//把M转化为字符串//把Num倒置//把倒置后的Num转化为整数//把M换华为字符串//表示M不是回文数//M是回文数,…… 题解列表 2022年05月12日 0 点赞 0 评论 236 浏览 评分:0.0
简单易理解 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;import java.math.BigInteger;public class Main {public static…… 题解列表 2025年05月29日 1 点赞 0 评论 143 浏览 评分:0.0
用字符串存储方便反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int init(string s){ int x = 0; while…… 题解列表 2025年02月22日 0 点赞 0 评论 370 浏览 评分:0.0
高精度回文数 摘要:解题思路:判断是否为字符串是否为回文数其实就是将该字符串反转比较是否相同就行,还有就是高精度的加法运算要会```cpp#include #include #include …… 题解列表 2025年01月15日 0 点赞 0 评论 450 浏览 评分:0.0
所有代码中唯一没有用while的 摘要:```python def hs(q): p=0 for i in range(10): if p>=9: return(0) …… 题解列表 2024年08月01日 0 点赞 0 评论 598 浏览 评分:0.0
c++最简单方法—递归 摘要:解题思路:每次刷新需要判断回文的数,进入下次递归进行判断注意事项:输出一次res就要给他重新刷新为0参考代码:#include<iostream>using namespace std;int re…… 题解列表 2023年10月23日 0 点赞 0 评论 564 浏览 评分:0.0
回文数(一) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int n);int fx(int n);int main(){ int M,L,count; scanf("%…… 题解列表 2017年09月08日 0 点赞 0 评论 1301 浏览 评分:0.0
回文数(一)——python 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): a = input() s = 0 while a!=a[::-1]: …… 题解列表 2023年03月31日 0 点赞 0 评论 367 浏览 评分:0.0
回文数(一) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(void){ int i, j, l, k, m, x, y, z, h, gao…… 题解列表 2017年12月18日 0 点赞 0 评论 1008 浏览 评分:0.0
1201: 回文数(一) 摘要:```c #include int huiwen(int n){ int cnt=0,i,k,a[100]; do{ a[cnt]=n%10; cnt++; n/=10…… 题解列表 2023年02月06日 0 点赞 0 评论 595 浏览 评分:0.0