题解 1616: 蓝桥杯算法训练VIP-反置数

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

筛选

第一次打卡

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ff(int n){ int i=0; while(n) { i=i*10+n%10; n/=10; } return i……

日常打卡1.18

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N = 1e7 + 5;int arry[N];int reve……

蓝桥杯算法训练VIP-反置数-题解(C语言代码)

1、看好题目的要求,一步一步实现很容易的,只要你看懂题。此题的关键的末尾的0,其余都好办```c#includeintfan(intn){inta[10],t=1,b=0,i=1,j=1;while(n%10==0)//用循环去掉末尾的0,末尾有几个0去掉几个0{n/=10;}while(n/10)/