c++
#include <iostream>
#include <algorithm>
using namespace std;
int x, cnt;
vector<int> s;
int main()
{
char a;
while (cin >> x)
{
s.push_back(x);
cin >> a;
}
sort(s.begin(), s.end());
for (auto& x : s)
{
cout << x;
if (++ cnt % 4) cout << ' ';
else cout << endl;
}
}
登录后发布评论
暂无评论,来抢沙发