mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
16 lines
308 B
C++
16 lines
308 B
C++
|
#include <iostream>
|
||
|
#include <algorithm>
|
||
|
using namespace std;
|
||
|
int main(void)
|
||
|
{
|
||
|
char n[4];
|
||
|
while (cin >> n)
|
||
|
{
|
||
|
if (n[0] > n[1]) swap(n[0], n[1]);
|
||
|
if (n[1] > n[2]) swap(n[1], n[2]);
|
||
|
if (n[0] > n[1]) swap(n[0], n[1]);
|
||
|
cout << n[0] << ' ' << n[1] << ' ' << n[2] << endl;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|