Submission
Status:
[-SSSSSSSSS]
Subtask/Task Score:
{0/100}
Score: 0
User: randomguy
Problemset: เรียงสตริง
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-10 12:43:47
#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <numeric>
#include <set>
#include <algorithm>
#define io() do { ios::sync_with_stdio(false); cin.tie(nullptr); } while(0)
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
string a;
cin >> a;
multiset<int> alp;
for(char c:a){
alp.insert(c);
}
for(char c:alp){
cout << c;
if(c!=char(*alp.rbegin())) cout << " ";
}
}