C语言训练-求车速-题解(C++代码)
摘要:不会的小伙伴来看看哦!:smile:
这道题目求新的对称数是多少,我是从95860开始的,用for循环来找新的对称数,结合if语句,并且在if语句中用break就可以了。看看我做的。
……
暴力回文(c++代码)
摘要:解题思路:(此思路从回文那题搬运而来)从95860开始往后枚举若是回文数字(原数字与倒数字相同)自动跳出,判断回文的方法:从个位开始依次取余,每次取余后的结果和上次和的结果*10最后得到的值就是给这个……
1140: C语言训练-求车速
摘要:方法一:
```cpp
#include
using namespace std;
int main()
{
int N=95859;
while(true)
……
求车速(超级简单C++)
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int main()
{
int i;
for(i=95860;……
题目 1140: C语言训练-求车速
摘要:解题思路:用while循环来实现数据的递增,一旦有一个数满足题目已给的条件,就退出while循环判断五位数的每个位数之间的关系:万位(即第一位)=数/10000 ……
C语言训练-求车速-题解(C++代码)
摘要:# 思路
不使用字符串,直接使用数字判断是否回文数。
# 代码
```cpp
#include
bool isPalindrome(int num)
{
if (0 == num……
C语言训练-求车速-题解(C++代码)
摘要:```cpp
#include
using namespace std;
int f(int n);
int main()
{
int n=95860;
while(1)
……
Hifipsysta-1140-C语言训练-求车速(C++代码)字符串转换法
摘要:```cpp
#include
#include
using namespace std;
bool is_symmetry(int n){
bool flag = false;……
不好意思,直接输出了
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"95959"<<endl; return 0……