伪冒泡排序(依次比较) 摘要:解题思路:类似冒泡排序。依次比较相邻的两个数a,b,将更大的数赋给b,再比较b和c,直到末位注意事项:减少了if else语句的使用。与冒泡排序区别在于只求最大值,不管比较中更小的那个数。参考代码:#…… 题解列表 2021年12月01日 0 点赞 0 评论 442 浏览 评分:0.0
题解 1006: [编程入门]三个数找最大值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long a,b,c; cin>>a>>b…… 题解列表 2023年11月15日 0 点赞 0 评论 162 浏览 评分:0.0
[编程入门]三个数找最大值-题解(C++代码) 摘要:# MarkDown编辑器基本使用说明 #include using namespace std; int main() { int a,b,c; int max; cin>>a…… 题解列表 2020年06月16日 0 点赞 0 评论 379 浏览 评分:0.0
[编程入门]三个数找最大值-题解(C++代码) 摘要:解题思路:利用max函数,符合求解注意事项:添加cmath头文件参考代码:#include#includeusing namespace std;int main(){ int a,b,c; c…… 题解列表 2021年01月17日 0 点赞 0 评论 260 浏览 评分:0.0
[编程入门]三个数找最大值-题解(C++代码) 摘要:# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。** ## 实时预览、全屏显示 ![…… 题解列表 2020年03月11日 0 点赞 0 评论 436 浏览 评分:0.0
[编程入门]三个数找最大值 摘要:解题思路:max注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){ cin>>a>>b>>c; co…… 题解列表 2022年05月24日 0 点赞 0 评论 149 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>using namespace std;int main(){ int a,b,c; s…… 题解列表 2017年07月26日 0 点赞 0 评论 1032 浏览 评分:0.0
自用if _else_语句 摘要:解题思路:if else语句注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b…… 题解列表 2021年04月01日 0 点赞 0 评论 240 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C++代码) 摘要:解题思路:直接调用库函数注意事项:注意输出的格式参考代码:#include<cstdio> #include<algorithm> using namespace std; int main() { …… 题解列表 2019年01月06日 0 点赞 0 评论 353 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C++代码) 摘要:参考代码: #include<iostream> using namespace std; &nbs 题解列表 2018年12月20日 3 点赞 1 评论 566 浏览 评分:0.0