感觉通熟易懂的方法,但无任何效率可言。。。。
#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;
int main()
{
int a , b, c , d , e , f;
cin >> a >> b >> c;
d = a;
e = b;
f = c;
if(a > b) swap(a , b);
if(a > c) swap(a , c);
if(b > c) swap(b , c);
printf("%d\n%d\n%d\n", a, b, c);
printf("\n");
printf("%d\n%d\n%d\n", d, e, f);
return 0;
}