[编程入门]三个数字的排序 (选择排序法解决) 摘要:#第一次写题解,可能写得不是很清楚,有什么不懂的可以在评论里告诉我 #include using namespace std; int main() { int a,b,c,t; …… 题解列表 2020年03月15日 0 点赞 7 评论 1741 浏览 评分:9.9
三个数字排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c…… 题解列表 2023年05月20日 0 点赞 0 评论 137 浏览 评分:9.9
利用C++ 集合set特性解题 摘要:``` #include #include #include using namespace std; int M,N; int a[3]; set T; int main(){ …… 题解列表 2022年04月27日 0 点赞 0 评论 268 浏览 评分:9.9
题解 1043: 三个数字的排序 摘要:解题思路:题目中要求把输入的3个数从小到大依次输出,那么我们就要先考虑有几种可能的顺序第一个数第二个数第三个数abccbbaccacabba共6种另外,说明一下,如果有n个数,共有 n!(即n的阶乘)…… 题解列表 2023年05月20日 0 点赞 1 评论 436 浏览 评分:9.9
1043: [编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a>b){in…… 题解列表 2022年10月20日 0 点赞 0 评论 176 浏览 评分:9.9
sort还是方便的 摘要:参考代码:#include<iostream> #include<algorithm> using namespace std; int main() { int arr[3]; …… 题解列表 2024年01月01日 0 点赞 0 评论 193 浏览 评分:9.9
题解 1043: [编程入门]三个数字的排序 摘要:解题思路: 论坛是个好东西,写完自己的代码后要去多逛逛下面来总结这道题的三种解法方法一:三目运算符求解最大数:(a>b?a:b)>c?(a>b?a:b):c)最小数:(a<b?a:b)<c?(a<b?…… 题解列表 2023年12月30日 0 点赞 0 评论 68 浏览 评分:9.9
[编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main( ){int a, b, c;cin>>a>>b>>c;if(a>b){in…… 题解列表 2022年12月14日 0 点赞 0 评论 128 浏览 评分:9.9
algorithm头文件函数:sort() 摘要:解题思路:不认识algorithm头文件函数的可以看这篇文章:https://blog.csdn.net/weixin_43899069/article/details/104450000注意事项:参…… 题解列表 2024年02月19日 0 点赞 0 评论 125 浏览 评分:9.9
三个数字的排序(C++)萌新也能打的通俗易懂 摘要:解题思路:探讨三个数之间的对应关系。用穷举法即可。注意事项:不要数漏!不要数漏!不要数漏!因为只有3个数所以很容易举列,所以只适用于简易的排列。参考代码:#include<iostream>using…… 题解列表 2022年10月11日 0 点赞 0 评论 240 浏览 评分:9.9