原题:http://acm.hdu.edu.cn/showproblem.php?pid=2000
代码:
//hoj_2000
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
char n[3];
while(cin >> n)
{
sort(n,n+3);
cout << n[0] << ' ' << n[1] << ' ' << n[2] << endl;
}
return 0;
}