Hifipsysta-1140-C语言训练-求车速(C++代码)字符串转换法 摘要:```cpp #include #include using namespace std; bool is_symmetry(int n){ bool flag = false;…… 题解列表 2022年02月04日 0 点赞 0 评论 530 浏览 评分:0.0
不好意思,直接输出了 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"95959"<<endl; return 0…… 题解列表 2022年03月26日 0 点赞 0 评论 362 浏览 评分:0.0
【C语言】sprintf的基础用法 摘要:## 关于sprintf C 库函数 int sprintf(char *str, const char *format, ...) 发送格式化输出到 str 所指向的字符串。 参数: str …… 题解列表 2021年10月26日 0 点赞 0 评论 531 浏览 评分:0.0
1140-C语言训练-求车速 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ int m=95860; while…… 题解列表 2022年10月08日 0 点赞 0 评论 294 浏览 评分:0.0
1140-求车速(reverse()函数) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace std;int main(){…… 题解列表 2022年10月08日 0 点赞 0 评论 337 浏览 评分:0.0
这题没加限制,我这种拉机真的不懂啊 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("95959"); return 0;}…… 题解列表 2023年03月03日 0 点赞 0 评论 260 浏览 评分:0.0
python求回文数 摘要:解题思路:判断回文数注意事项:注意取值范围不用太大参考代码:def hui(n): L = str(n) if L == L[::-1]: return 1 else…… 题解列表 2023年03月18日 0 点赞 0 评论 678 浏览 评分:0.0
头尾指针判断 摘要:思路: 从95960开始遍历,找到第一个回文数就退出即可 回文数的判断: 1、可用本题中的数组利用头尾指针进行判断; 2、可以利用字符串的处理,因为有strlen函数,比较容易得到长度 …… 题解列表 2023年03月31日 1 点赞 0 评论 575 浏览 评分:0.0
c语言求车速,对称数 摘要:解题思路:设i为车速,求出车速150以内对应的对称数,然后找到题目要求输出的那个对称数。注意事项:先自已运行一遍,找到95959对应的车速为60,下一个69069对应的车速为105,把循环里的i最大值…… 题解列表 2024年02月01日 0 点赞 0 评论 453 浏览 评分:0.0
1140求车速(直接输出95959) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout << "95959"; return 0;}…… 题解列表 2024年07月07日 0 点赞 0 评论 472 浏览 评分:0.0