Hifipsysta-1140-C语言训练-求车速(C++代码)字符串转换法 摘要:```cpp #include #include using namespace std; bool is_symmetry(int n){ bool flag = false;…… 题解列表 2022年02月04日 0 点赞 0 评论 490 浏览 评分:0.0
1140: C语言训练-求车速 却让我写里程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ long long i; for(i = 95860;i<95960;i++…… 题解列表 2024年12月08日 0 点赞 0 评论 468 浏览 评分:0.0
不好意思,直接输出了 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"95959"<<endl; return 0…… 题解列表 2022年03月26日 0 点赞 0 评论 320 浏览 评分:0.0
1140求车速(直接输出95959) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout << "95959"; return 0;}…… 题解列表 2024年07月07日 0 点赞 0 评论 414 浏览 评分:0.0
题解 1140: C语言训练-求车速(C-注意:题目要求只输出里程!!!) 摘要:去掉注释就能看到计算过程,和对应速度~参考代码:#include<stdio.h> int main(void){ int i; int a,b,c,d; int e; floa…… 题解列表 2022年08月28日 0 点赞 0 评论 283 浏览 评分:0.0
c语言求车速,对称数 摘要:解题思路:设i为车速,求出车速150以内对应的对称数,然后找到题目要求输出的那个对称数。注意事项:先自已运行一遍,找到95959对应的车速为60,下一个69069对应的车速为105,把循环里的i最大值…… 题解列表 2024年02月01日 0 点赞 0 评论 409 浏览 评分:0.0
1140-C语言训练-求车速 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ int m=95860; while…… 题解列表 2022年10月08日 0 点赞 0 评论 262 浏览 评分:0.0
头尾指针判断 摘要:思路: 从95960开始遍历,找到第一个回文数就退出即可 回文数的判断: 1、可用本题中的数组利用头尾指针进行判断; 2、可以利用字符串的处理,因为有strlen函数,比较容易得到长度 …… 题解列表 2023年03月31日 1 点赞 0 评论 550 浏览 评分:0.0
1140-求车速(reverse()函数) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace std;int main(){…… 题解列表 2022年10月08日 0 点赞 0 评论 298 浏览 评分:0.0
python求回文数 摘要:解题思路:判断回文数注意事项:注意取值范围不用太大参考代码:def hui(n): L = str(n) if L == L[::-1]: return 1 else…… 题解列表 2023年03月18日 0 点赞 0 评论 628 浏览 评分:0.0