#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
char a, b, c,temp;
while (cin >> a >> b >> c)
{
if (a > b)
{
temp = a;
a = b;
b = temp;
}
if (a > c)
{
temp = c;
c = a;
a = temp;
}
if (b>c)
{
temp = c;
c = b;
b = temp;
}
cout << a << " " << b << " " << c<< endl;
}
}
杭电OJ2000
猜你喜欢
转载自blog.csdn.net/weixin_42265486/article/details/83501068
今日推荐
周排行