Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: 666whynot
Problemset: เรียงสตริง
Language: cpp
Time: 0.003 second
Submitted On: 2025-07-28 20:32:48
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);cin.tie(0);
string n;
getline(cin ,n);
sort(n.begin(),n.end());
n.erase(unique(n.begin(), n.end()), n.end());
for(int i=0;i<n.size();i++){
if(i == n.size() - 1) cout << n[i];
else cout << n[i] << ' ';
}
}