Submission
Status:
[PP-SSSSSSS]
Subtask/Task Score:
{0/100}
Score: 0
User: yourmom
Problemset: เรียงสตริง
Language: cpp
Time: 0.004 second
Submitted On: 2026-11-13 09:09:04
using namespace std;
#include <bits/stdc++.h>
int t;
string a;
char qwert[31];
int main()
{
cin>>a;
t = a.length();
for(int i=0;i<a.length();i++){
qwert[i] = a[i];
}
sort(qwert , qwert+a.length());
for(int i=0;i<a.length() - 1;i++){
if(qwert[i] == qwert[i+1]){
qwert[i+1] = 'z';
t--;
}
}
sort(qwert , qwert+a.length());
for(int i=0;i<t;i++){
cout<<qwert[i]<<' ';
}
return 0;
}