题目描述
blablabla
样例
#include<iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int shuzu[3] = { a,b,c};
if (a > b) {
int temp = b;
b = a;
a = temp;
}
if (a > c) {
int temp = c;
c = a;
a = temp;
}
if (b > c) {
int temp = c;
c = b;
b = temp;
}
cout << a << endl;
cout << b << endl;
cout << c << endl;
printf("\n");
for (int i = 0; i < 3; i++) {
cout << shuzu[i] << endl;
}
return 0;
}
算法1
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla
算法2
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla